Browse Source

fix(nocodb): build issue

pull/9722/head
Ramesh Mane 6 days ago
parent
commit
7429b3819c
  1. 4
      packages/nocodb/src/controllers/attachments-secure.controller.ts
  2. 4
      packages/nocodb/src/controllers/attachments.controller.ts

4
packages/nocodb/src/controllers/attachments-secure.controller.ts

@ -47,7 +47,7 @@ export class AttachmentsSecureController {
@UseInterceptors(UploadAllowedInterceptor, AnyFilesInterceptor()) @UseInterceptors(UploadAllowedInterceptor, AnyFilesInterceptor())
async upload( async upload(
@UploadedFiles() files: Array<FileType>, @UploadedFiles() files: Array<FileType>,
@Query('scope') scope?: PublicAttachmentScope, @Query('scope') scope: PublicAttachmentScope,
@Req() req: NcRequest & { user: { id: string } }, @Req() req: NcRequest & { user: { id: string } },
) { ) {
const attachments = await this.attachmentsService.upload({ const attachments = await this.attachmentsService.upload({
@ -65,7 +65,7 @@ export class AttachmentsSecureController {
@UseGuards(MetaApiLimiterGuard, GlobalGuard) @UseGuards(MetaApiLimiterGuard, GlobalGuard)
async uploadViaURL( async uploadViaURL(
@Body() body: Array<AttachmentReqType>, @Body() body: Array<AttachmentReqType>,
@Query('scope') scope?: PublicAttachmentScope, @Query('scope') scope: PublicAttachmentScope,
@Req() req: NcRequest & { user: { id: string } }, @Req() req: NcRequest & { user: { id: string } },
) { ) {
const attachments = await this.attachmentsService.uploadViaURL({ const attachments = await this.attachmentsService.uploadViaURL({

4
packages/nocodb/src/controllers/attachments.controller.ts

@ -48,7 +48,7 @@ export class AttachmentsController {
@UseInterceptors(UploadAllowedInterceptor, AnyFilesInterceptor()) @UseInterceptors(UploadAllowedInterceptor, AnyFilesInterceptor())
async upload( async upload(
@UploadedFiles() files: Array<FileType>, @UploadedFiles() files: Array<FileType>,
@Query('scope') scope?: PublicAttachmentScope, @Query('scope') scope: PublicAttachmentScope,
@Req() req: NcRequest, @Req() req: NcRequest,
) { ) {
const attachments = await this.attachmentsService.upload({ const attachments = await this.attachmentsService.upload({
@ -68,7 +68,7 @@ export class AttachmentsController {
async uploadViaURL( async uploadViaURL(
@Body() body: Array<AttachmentReqType>, @Body() body: Array<AttachmentReqType>,
@Query('path') path: string, @Query('path') path: string,
@Query('scope') scope?: PublicAttachmentScope, @Query('scope') scope: PublicAttachmentScope,
@Req() req: NcRequest, @Req() req: NcRequest,
) { ) {
const attachments = await this.attachmentsService.uploadViaURL({ const attachments = await this.attachmentsService.uploadViaURL({

Loading…
Cancel
Save