Browse Source

refactor(nocodb): change operation type to insert or update in hook.ctl.ts

pull/5349/head
Wing-Kam Wong 2 years ago
parent
commit
9df8b8b23e
  1. 3
      packages/nocodb/src/lib/controllers/hook.ctl.ts

3
packages/nocodb/src/lib/controllers/hook.ctl.ts

@ -57,8 +57,7 @@ export async function tableSampleData(req: Request, res: Response) {
res.json(
await hookService.tableSampleData({
tableId: req.params.tableId,
// todo: replace any with type
operation: req.params.operation as any,
operation: req.params.operation as 'insert' | 'update',
})
);
}

Loading…
Cancel
Save