diff --git a/apps/dokploy/server/utils/access-log/utils.ts b/apps/dokploy/server/utils/access-log/utils.ts index 54f2e7e30..0a322f955 100644 --- a/apps/dokploy/server/utils/access-log/utils.ts +++ b/apps/dokploy/server/utils/access-log/utils.ts @@ -78,6 +78,7 @@ export function parseRawConfig( status.some((range) => isStatusInRange(log.DownstreamStatus, range)), ); } + const totalCount = parsedLogs.length; if (sort) { parsedLogs = _.orderBy( @@ -94,8 +95,6 @@ export function parseRawConfig( parsedLogs = parsedLogs.slice(startIndex, startIndex + page.pageSize); } - const totalCount = parsedLogs.length; - return { data: parsedLogs, totalCount }; } catch (error) { console.error("Error parsing rawConfig:", error);