|
|
@ -1,15 +1,15 @@ |
|
|
|
import { |
|
|
|
import { |
|
|
|
Body, |
|
|
|
Body, |
|
|
|
Controller, |
|
|
|
Controller, |
|
|
|
Get, HttpCode, |
|
|
|
Get, |
|
|
|
|
|
|
|
HttpCode, |
|
|
|
Param, |
|
|
|
Param, |
|
|
|
Patch, |
|
|
|
Patch, |
|
|
|
Post, |
|
|
|
Post, |
|
|
|
UseGuards, |
|
|
|
UseGuards, |
|
|
|
} from '@nestjs/common' |
|
|
|
} from '@nestjs/common'; |
|
|
|
import { ViewCreateReqType } from 'nocodb-sdk'; |
|
|
|
import { ViewCreateReqType } from 'nocodb-sdk'; |
|
|
|
import { AuthGuard } from '@nestjs/passport'; |
|
|
|
import { GlobalGuard } from '../../guards/global/global.guard'; |
|
|
|
import { GlobalGuard } from '../../guards/global/global.guard' |
|
|
|
|
|
|
|
import { |
|
|
|
import { |
|
|
|
Acl, |
|
|
|
Acl, |
|
|
|
ExtractProjectIdMiddleware, |
|
|
|
ExtractProjectIdMiddleware, |
|
|
@ -44,12 +44,13 @@ export class KanbansController { |
|
|
|
|
|
|
|
|
|
|
|
@Patch('/api/v1/db/meta/kanbans/:kanbanViewId') |
|
|
|
@Patch('/api/v1/db/meta/kanbans/:kanbanViewId') |
|
|
|
@Acl('kanbanViewUpdate') |
|
|
|
@Acl('kanbanViewUpdate') |
|
|
|
async kanbanViewUpdate(req, res) { |
|
|
|
async kanbanViewUpdate( |
|
|
|
res.json( |
|
|
|
@Param('kanbanViewId') kanbanViewId: string, |
|
|
|
await this.kanbansService.kanbanViewUpdate({ |
|
|
|
@Body() body, |
|
|
|
kanbanViewId: req.params.kanbanViewId, |
|
|
|
) { |
|
|
|
kanban: req.body, |
|
|
|
return await this.kanbansService.kanbanViewUpdate({ |
|
|
|
}), |
|
|
|
kanbanViewId, |
|
|
|
); |
|
|
|
kanban: body, |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|