Browse Source

refactor(nocodb): galleryViewService.galleryViewCreate

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
5573132999
  1. 13
      packages/nocodb/src/lib/controllers/views/galleryView.ctl.ts

13
packages/nocodb/src/lib/controllers/views/galleryView.ctl.ts

@ -14,12 +14,13 @@ export async function galleryViewGet(req: Request, res: Response<GalleryType>) {
} }
export async function galleryViewCreate(req: Request<any, any>, res) { export async function galleryViewCreate(req: Request<any, any>, res) {
const view = await galleryViewService.galleryViewCreate({ res.json(
gallery: req.body, await galleryViewService.galleryViewCreate({
// todo: sanitize gallery: req.body,
tableId: req.params.tableId, // todo: sanitize
}); tableId: req.params.tableId,
res.json(view); })
);
} }
export async function galleryViewUpdate(req, res) { export async function galleryViewUpdate(req, res) {

Loading…
Cancel
Save