Browse Source

feat(nocodb): only fetch the latest 10 records

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

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

@ -42,6 +42,8 @@ export default class HookLog implements HookLogType {
orderBy: { orderBy: {
created_at: 'desc', created_at: 'desc',
}, },
// only fetch the latest 10 records
limit: 10,
}); });
return hookLogs?.map((h) => new HookLog(h)); return hookLogs?.map((h) => new HookLog(h));
} }

Loading…
Cancel
Save