From 4c6111fc9bd272c393a7252c0294e948ab0b533e Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 25 Mar 2023 14:17:55 +0800 Subject: [PATCH] feat(nocodb): add orderBy on created_at in HookLog.ts --- packages/nocodb/src/lib/models/HookLog.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nocodb/src/lib/models/HookLog.ts b/packages/nocodb/src/lib/models/HookLog.ts index b7d5231dde..d07b0f4233 100644 --- a/packages/nocodb/src/lib/models/HookLog.ts +++ b/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)); }