Browse Source

refactor(nocodb): galleryViewService.galleryViewCreate

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

7
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) {
const view = await galleryViewService.galleryViewCreate({
res.json(
await galleryViewService.galleryViewCreate({
gallery: req.body,
// todo: sanitize
tableId: req.params.tableId,
});
res.json(view);
})
);
}
export async function galleryViewUpdate(req, res) {

Loading…
Cancel
Save