File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/modules/workspace/repositories Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export class WorkspaceRepository {
122122 . findOne ( { _id : id } ) ;
123123 // Check if workspace is restricted
124124 if ( ! response ) {
125- throw new BadRequestException ( "Workspace not found." ) ;
125+ return ;
126126 }
127127 if ( response ?. isRestricted === true || response ?. isFreezed === true ) {
128128 console . log ( `Access denied: Workspace ${ id } is restricted` ) ;
@@ -141,7 +141,7 @@ export class WorkspaceRepository {
141141 . find ( { _id : { $in : IdArray } } )
142142 . toArray ( ) ;
143143 if ( ! response || response . length === 0 ) {
144- throw new BadRequestException ( "No workspaces found." ) ;
144+ return [ ] ;
145145 }
146146 // Filter out restricted workspaces
147147 const filteredResponse = response . filter ( ( workspace ) => {
You can’t perform that action at this time.
0 commit comments