From 32f3b0a9ccccbb3bb8b91ba854ffa9f5f5cb9ea0 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Thu, 15 Feb 2024 10:38:09 +0000 Subject: [PATCH] fix: audit paging (#3421) --- frontend/common/services/useAuditLog.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/common/services/useAuditLog.ts b/frontend/common/services/useAuditLog.ts index 0a1ec4e2d5e1..412558943fe2 100644 --- a/frontend/common/services/useAuditLog.ts +++ b/frontend/common/services/useAuditLog.ts @@ -2,6 +2,7 @@ import { Res } from 'common/types/responses' import { Req } from 'common/types/requests' import { service } from 'common/service' import Utils from 'common/utils/utils' +import transformCorePaging from 'common/transformCorePaging' export const auditLogService = service .enhanceEndpoints({ addTagTypes: ['AuditLog'] }) @@ -24,6 +25,7 @@ export const auditLogService = service url: `audit/?${Utils.toParam(params)}`, } }, + transformResponse: (res, _, req) => transformCorePaging(req, res), }), // END OF ENDPOINTS }),