Browse Source

fix(nocodb): ViewReq -> ViewUpdateReq

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
5b45443581
  1. 2
      packages/nocodb/src/lib/services/view.svc.ts

2
packages/nocodb/src/lib/services/view.svc.ts

@ -38,7 +38,7 @@ export async function viewUpdate(param: {
viewId: string; viewId: string;
view: ViewUpdateReqType; view: ViewUpdateReqType;
}) { }) {
validatePayload('swagger.json#/components/schemas/ViewReq', param.view); validatePayload('swagger.json#/components/schemas/ViewUpdateReq', param.view);
const result = await View.update(param.viewId, param.view); const result = await View.update(param.viewId, param.view);
T.emit('evt', { evt_type: 'vtable:updated', show_as: result.type }); T.emit('evt', { evt_type: 'vtable:updated', show_as: result.type });
return result; return result;

Loading…
Cancel
Save