mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-30 16:52:16 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -97,24 +97,28 @@ export const ShowProjects = () => {
|
|||||||
break;
|
break;
|
||||||
case "services": {
|
case "services": {
|
||||||
const aTotalServices = a.environments.reduce((total, env) => {
|
const aTotalServices = a.environments.reduce((total, env) => {
|
||||||
return total +
|
return (
|
||||||
|
total +
|
||||||
(env.applications?.length || 0) +
|
(env.applications?.length || 0) +
|
||||||
(env.mariadb?.length || 0) +
|
(env.mariadb?.length || 0) +
|
||||||
(env.mongo?.length || 0) +
|
(env.mongo?.length || 0) +
|
||||||
(env.mysql?.length || 0) +
|
(env.mysql?.length || 0) +
|
||||||
(env.postgres?.length || 0) +
|
(env.postgres?.length || 0) +
|
||||||
(env.redis?.length || 0) +
|
(env.redis?.length || 0) +
|
||||||
(env.compose?.length || 0);
|
(env.compose?.length || 0)
|
||||||
|
);
|
||||||
}, 0);
|
}, 0);
|
||||||
const bTotalServices = b.environments.reduce((total, env) => {
|
const bTotalServices = b.environments.reduce((total, env) => {
|
||||||
return total +
|
return (
|
||||||
|
total +
|
||||||
(env.applications?.length || 0) +
|
(env.applications?.length || 0) +
|
||||||
(env.mariadb?.length || 0) +
|
(env.mariadb?.length || 0) +
|
||||||
(env.mongo?.length || 0) +
|
(env.mongo?.length || 0) +
|
||||||
(env.mysql?.length || 0) +
|
(env.mysql?.length || 0) +
|
||||||
(env.postgres?.length || 0) +
|
(env.postgres?.length || 0) +
|
||||||
(env.redis?.length || 0) +
|
(env.redis?.length || 0) +
|
||||||
(env.compose?.length || 0);
|
(env.compose?.length || 0)
|
||||||
|
);
|
||||||
}, 0);
|
}, 0);
|
||||||
comparison = aTotalServices - bTotalServices;
|
comparison = aTotalServices - bTotalServices;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user