diff --git a/apps/server/src/modules/files-storage/controller/files-storage.controller.ts b/apps/server/src/modules/files-storage/controller/files-storage.controller.ts index 93729022b0..ef70373a2c 100644 --- a/apps/server/src/modules/files-storage/controller/files-storage.controller.ts +++ b/apps/server/src/modules/files-storage/controller/files-storage.controller.ts @@ -58,7 +58,7 @@ export class FilesStorageController { @ApiResponse({ status: 403, type: ForbiddenException }) @ApiResponse({ status: 500, type: InternalServerErrorException }) @Post('/upload-from-url/:storageLocation/:storageLocationId/:parentType/:parentId') - async uploadFromUrl( + public async uploadFromUrl( @Body() body: FileUrlParams, @Param() params: FileRecordParams, @CurrentUser() currentUser: ICurrentUser @@ -78,7 +78,7 @@ export class FilesStorageController { @ApiResponse({ status: 500, type: InternalServerErrorException }) @ApiConsumes('multipart/form-data') @Post('/upload/:storageLocation/:storageLocationId/:parentType/:parentId') - async upload( + public async upload( @Body() _: FileParams, @Param() params: FileRecordParams, @CurrentUser() currentUser: ICurrentUser, @@ -109,7 +109,7 @@ export class FilesStorageController { @ApiResponse({ status: 500, type: InternalServerErrorException }) @ApiHeader({ name: 'Range', required: false }) @Get('/download/:fileRecordId/:fileName') - async download( + public async download( @Param() params: DownloadFileParams, @CurrentUser() currentUser: ICurrentUser, @Req() req: Request, @@ -135,7 +135,7 @@ export class FilesStorageController { @ApiHeader({ name: 'Range', required: false }) @ApiHeader({ name: 'If-None-Match', required: false }) @Get('/preview/:fileRecordId/:fileName') - async downloadPreview( + public async downloadPreview( @Param() params: DownloadFileParams, @CurrentUser() currentUser: ICurrentUser, @Query() previewParams: PreviewParams, @@ -196,7 +196,7 @@ export class FilesStorageController { @ApiResponse({ status: 400, type: ApiValidationError }) @ApiResponse({ status: 403, type: ForbiddenException }) @Get('/list/:storageLocation/:storageLocationId/:parentType/:parentId') - async list( + public async list( @Param() params: FileRecordParams, @Query() pagination: PaginationParams ): Promise { @@ -219,7 +219,7 @@ export class FilesStorageController { }) @Patch('/rename/:fileRecordId/') @UseInterceptors(RequestLoggingInterceptor) - async patchFilename( + public async patchFilename( @Param() params: SingleFileParams, @Body() renameFileParam: RenameFileParams ): Promise { @@ -240,7 +240,7 @@ export class FilesStorageController { @ApiResponse({ status: 500, type: InternalServerErrorException }) @Delete('/delete/:storageLocation/:storageLocationId/:parentType/:parentId') @UseInterceptors(RequestLoggingInterceptor) - async deleteByParent(@Param() params: FileRecordParams): Promise { + public async deleteByParent(@Param() params: FileRecordParams): Promise { const [fileRecords, total] = await this.filesStorageUC.deleteFilesOfParent(params); const response = FileRecordMapper.mapToFileRecordListResponse(fileRecords, total); @@ -254,7 +254,7 @@ export class FilesStorageController { @ApiResponse({ status: 500, type: InternalServerErrorException }) @Delete('/delete/:fileRecordId') @UseInterceptors(RequestLoggingInterceptor) - async deleteFile(@Param() params: SingleFileParams): Promise { + public async deleteFile(@Param() params: SingleFileParams): Promise { const fileRecord = await this.filesStorageUC.deleteOneFile(params); const response = FileRecordMapper.mapToFileRecordResponse(fileRecord); @@ -267,7 +267,7 @@ export class FilesStorageController { @ApiResponse({ status: 400, type: ApiValidationError }) @ApiResponse({ status: 403, type: ForbiddenException }) @Post('/restore/:storageLocation/:storageLocationId/:parentType/:parentId') - async restore(@Param() params: FileRecordParams): Promise { + public async restore(@Param() params: FileRecordParams): Promise { const [fileRecords, total] = await this.filesStorageUC.restoreFilesOfParent(params); const response = FileRecordMapper.mapToFileRecordListResponse(fileRecords, total); @@ -280,7 +280,7 @@ export class FilesStorageController { @ApiResponse({ status: 400, type: ApiValidationError }) @ApiResponse({ status: 403, type: ForbiddenException }) @Post('/restore/:fileRecordId') - async restoreFile(@Param() params: SingleFileParams): Promise { + public async restoreFile(@Param() params: SingleFileParams): Promise { const fileRecord = await this.filesStorageUC.restoreOneFile(params); const response = FileRecordMapper.mapToFileRecordResponse(fileRecord); @@ -294,7 +294,7 @@ export class FilesStorageController { @ApiResponse({ status: 403, type: ForbiddenException }) @ApiResponse({ status: 500, type: InternalServerErrorException }) @Post('/copy/:storageLocation/:storageLocationId/:parentType/:parentId') - async copy( + public async copy( @Param() params: FileRecordParams, @Body() copyFilesParam: CopyFilesOfParentParams, @CurrentUser() currentUser: ICurrentUser @@ -311,7 +311,7 @@ export class FilesStorageController { @ApiResponse({ status: 404, type: NotFoundException }) @ApiResponse({ status: 500, type: InternalServerErrorException }) @Post('/copy/:fileRecordId') - async copyFile( + public async copyFile( @Param() params: SingleFileParams, @Body() copyFileParam: CopyFileParams, @CurrentUser() currentUser: ICurrentUser