Browse Source

refactor(nocodb): return update fn

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
49fcb550c2
  1. 2
      packages/nocodb/src/lib/models/FormViewColumn.ts
  2. 2
      packages/nocodb/src/lib/models/GridViewColumn.ts
  3. 2
      packages/nocodb/src/lib/services/views/galleryView.svc.ts

2
packages/nocodb/src/lib/models/FormViewColumn.ts

@ -182,7 +182,7 @@ export default class FormViewColumn implements FormColumnType {
}
// update meta
await ncMeta.metaUpdate(
return await ncMeta.metaUpdate(
null,
null,
MetaTable.FORM_VIEW_COLUMNS,

2
packages/nocodb/src/lib/models/GridViewColumn.ts

@ -133,7 +133,7 @@ export default class GridViewColumn implements GridColumnType {
await NocoCache.set(key, o);
}
// set meta
await ncMeta.metaUpdate(
return await ncMeta.metaUpdate(
null,
null,
MetaTable.GRID_VIEW_COLUMNS,

2
packages/nocodb/src/lib/services/views/galleryView.svc.ts

@ -31,5 +31,5 @@ export async function galleryViewUpdate(param: {
validatePayload('swagger.json#/components/schemas/GalleryReq', param.gallery);
T.emit('evt', { evt_type: 'view:updated', type: 'gallery' });
await GalleryView.update(param.galleryViewId, param.gallery);
return await GalleryView.update(param.galleryViewId, param.gallery);
}

Loading…
Cancel
Save