Browse Source

feat(nocodb): add orderBy on created_at in HookLog.ts

pull/5349/head
Wing-Kam Wong 2 years ago
parent
commit
4c6111fc9b
  1. 3
      packages/nocodb/src/lib/models/HookLog.ts

3
packages/nocodb/src/lib/models/HookLog.ts

@ -39,6 +39,9 @@ export default class HookLog implements HookLogType {
condition: {
fk_hook_id: param.fk_hook_id,
},
orderBy: {
created_at: 'desc',
},
});
return hookLogs?.map((h) => new HookLog(h));
}

Loading…
Cancel
Save