You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@LoggedIn()// TODO application specific: set appropriate guards here
): Promise<PrivateFile>{returnthis.fileService.getPrivateFile(getPrivateFileArgs);}/** * Deletes a private file * @param {DeleteFileInput} deleteFileInput - contains UUID * @returns {Promise<PrivateFile>} - the file that was deleted */
@LoggedIn()// TODO application specific: set appropriate guards here
@Mutation(()=>User)asyncdeletePrivateFile(
@Args('deleteFileInput')deleteFileInput: DeleteFileInput,): Promise<PrivateFile>{// TODO application specific: Ensure only allowed person (usually admin or file owner) is allowed to deletereturnthis.fileService.deleteFile(deleteFileInput,false,)asunknownasPrivateFile;}/** * Deletes a public file * @param {DeleteFileInput} deleteFileInput - contains UUID * @returns {Promise<PrivateFile>} - the file that was deleted */
@LoggedIn()// TODO application specific: set appropriate guards here
@Mutation(()=>User)asyncdeletePublicFile(
@Args('deleteFileInput')deleteFileInput: DeleteFileInput,): Promise<PublicFile>{// TODO application specific: Ensure only allowed person (usually admin ) is allowed to deletereturnthis.fileService.deleteFile(deleteFileInput,true,)asunknownasPublicFile;}}
9f285db237850b081992848aaf0bb90de4c00971
The text was updated successfully, but these errors were encountered:
application specific: set appropriate guards here
flox/backend/src/flox/modules/file/file.resolver.ts
Line 46 in 480f934
9f285db237850b081992848aaf0bb90de4c00971
The text was updated successfully, but these errors were encountered: