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

Loading…
Cancel
Save