Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: pagination info missing in webhook logs api

Ramesh Mane52add91b4453
diff --git a/packages/nocodb/src/controllers/internal/modules/UiGet.operations.ts b/packages/nocodb/src/controllers/internal/modules/UiGet.operations.ts
index a260c3904e..305e579584 100644
--- a/packages/nocodb/src/controllers/internal/modules/UiGet.operations.ts
+++ b/packages/nocodb/src/controllers/internal/modules/UiGet.operations.ts
@@ -22,8 +22,7 @@ import { SyncService } from '~/services/sync.service';
@Injectable()
export class UiGetOperations
- implements InternalApiModule<InternalGETResponseType>
-{
+ implements InternalApiModule<InternalGETResponseType> {
constructor(
protected dataTableService: DataTableService,
protected tablesService: TablesService,
@@ -38,7 +37,7 @@ export class UiGetOperations
protected mapsService: MapsService,
protected commentsService: CommentsService,
protected syncService: SyncService,
- ) {}
+ ) { }
operations = [
'nestedDataList' as const,
'tableGet' as const,
@@ -150,6 +149,12 @@ export class UiGetOperations
hookId: req.query.hookId as string,
query: req.query,
}),
+ {
+ ...req.query,
+ count: await this.hooksService.hookLogCount(context, {
+ hookId: req.query.hookId as string,
+ }),
+ },
);
case 'hookFilterList':
return new PagedResponseImpl(