Browse Source

feat(nocodb): add hookLogCount and pass query to HookLog.list

pull/5349/head
Wing-Kam Wong 2 years ago
parent
commit
b849d16a68
  1. 8
      packages/nocodb/src/lib/services/hook.svc.ts

8
packages/nocodb/src/lib/services/hook.svc.ts

@ -29,8 +29,8 @@ export async function hookList(param: { tableId: string }) {
return await Hook.list({ fk_model_id: param.tableId });
}
export async function hookLogList(param: { hookId: string }) {
return await HookLog.list({ fk_hook_id: param.hookId });
export async function hookLogList(param: { query: any; hookId: string }) {
return await HookLog.list({ fk_hook_id: param.hookId }, param.query);
}
export async function hookCreate(param: {
@ -110,3 +110,7 @@ export async function tableSampleData(param: {
}
return await populateSamplePayloadV2(model, false, param.operation);
}
export async function hookLogCount(param: { hookId: string }) {
return await HookLog.count({ hookId: param.hookId });
}

Loading…
Cancel
Save