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( res.json(
await hookService.tableSampleData({ await hookService.tableSampleData({
tableId: req.params.tableId, tableId: req.params.tableId,
// todo: replace any with type operation: req.params.operation as 'insert' | 'update',
operation: req.params.operation as any,
}) })
); );
} }

Loading…
Cancel
Save