|
|
@ -1,14 +1,15 @@ |
|
|
|
import { |
|
|
|
import { |
|
|
|
Body, |
|
|
|
Body, |
|
|
|
Controller, HttpCode, |
|
|
|
Controller, |
|
|
|
|
|
|
|
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 { AuthGuard } from '@nestjs/passport'; |
|
|
|
import { GlobalGuard } from '../../guards/global/global.guard' |
|
|
|
import { GlobalGuard } from '../../guards/global/global.guard'; |
|
|
|
import { |
|
|
|
import { |
|
|
|
Acl, |
|
|
|
Acl, |
|
|
|
ExtractProjectIdMiddleware, |
|
|
|
ExtractProjectIdMiddleware, |
|
|
@ -37,10 +38,10 @@ export class GridsController { |
|
|
|
return view; |
|
|
|
return view; |
|
|
|
} |
|
|
|
} |
|
|
|
@Patch('/api/v1/db/meta/grids/:viewId') |
|
|
|
@Patch('/api/v1/db/meta/grids/:viewId') |
|
|
|
async gridViewUpdate(req, res) { |
|
|
|
async gridViewUpdate(@Param('viewId') viewId: string, @Body() body) { |
|
|
|
return await this.gridsService.gridViewUpdate({ |
|
|
|
return await this.gridsService.gridViewUpdate({ |
|
|
|
viewId: req.params.viewId, |
|
|
|
viewId, |
|
|
|
grid: req.body, |
|
|
|
grid: body, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|