mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-21 19:38:47 +00:00
fix: coerce-stopgraceperiodswarm-to-number
This commit is contained in:
@@ -192,7 +192,8 @@ export const mechanizeDockerContainer = async (
|
|||||||
})),
|
})),
|
||||||
},
|
},
|
||||||
UpdateConfig,
|
UpdateConfig,
|
||||||
...(StopGracePeriod && { StopGracePeriod }),
|
...(StopGracePeriod !== undefined &&
|
||||||
|
StopGracePeriod !== null && { StopGracePeriod }),
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -397,6 +397,11 @@ export const generateConfigContainer = (
|
|||||||
stopGracePeriodSwarm,
|
stopGracePeriodSwarm,
|
||||||
} = application;
|
} = application;
|
||||||
|
|
||||||
|
const sanitizedStopGracePeriodSwarm =
|
||||||
|
typeof stopGracePeriodSwarm === "bigint"
|
||||||
|
? Number(stopGracePeriodSwarm)
|
||||||
|
: stopGracePeriodSwarm;
|
||||||
|
|
||||||
const haveMounts = mounts && mounts.length > 0;
|
const haveMounts = mounts && mounts.length > 0;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -445,8 +450,9 @@ export const generateConfigContainer = (
|
|||||||
Order: "start-first",
|
Order: "start-first",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
...(stopGracePeriodSwarm && {
|
...(sanitizedStopGracePeriodSwarm !== null &&
|
||||||
StopGracePeriod: stopGracePeriodSwarm,
|
sanitizedStopGracePeriodSwarm !== undefined && {
|
||||||
|
StopGracePeriod: sanitizedStopGracePeriodSwarm,
|
||||||
}),
|
}),
|
||||||
...(networkSwarm
|
...(networkSwarm
|
||||||
? {
|
? {
|
||||||
|
|||||||
Reference in New Issue
Block a user