mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: update total count
This commit is contained in:
@@ -75,8 +75,6 @@ export function parseRawConfig(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const totalCount = parsedLogs.length;
|
|
||||||
|
|
||||||
if (sort) {
|
if (sort) {
|
||||||
parsedLogs = _.orderBy(
|
parsedLogs = _.orderBy(
|
||||||
parsedLogs,
|
parsedLogs,
|
||||||
@@ -96,6 +94,8 @@ export function parseRawConfig(
|
|||||||
(log) => log.ServiceName !== "dokploy-service-app@file",
|
(log) => log.ServiceName !== "dokploy-service-app@file",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const totalCount = parsedLogs.length;
|
||||||
|
|
||||||
return { data: parsedLogs, totalCount };
|
return { data: parsedLogs, totalCount };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error parsing rawConfig:", error);
|
console.error("Error parsing rawConfig:", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user