fix: coerce-stopgraceperiodswarm-to-number

This commit is contained in:
Lucas Manchine
2025-09-24 09:54:54 -03:00
parent 2141e4b174
commit 59be1c5941
2 changed files with 10 additions and 3 deletions

View File

@@ -397,6 +397,11 @@ export const generateConfigContainer = (
stopGracePeriodSwarm,
} = application;
const sanitizedStopGracePeriodSwarm =
typeof stopGracePeriodSwarm === "bigint"
? Number(stopGracePeriodSwarm)
: stopGracePeriodSwarm;
const haveMounts = mounts && mounts.length > 0;
return {
@@ -445,8 +450,9 @@ export const generateConfigContainer = (
Order: "start-first",
},
}),
...(stopGracePeriodSwarm && {
StopGracePeriod: stopGracePeriodSwarm,
...(sanitizedStopGracePeriodSwarm !== null &&
sanitizedStopGracePeriodSwarm !== undefined && {
StopGracePeriod: sanitizedStopGracePeriodSwarm,
}),
...(networkSwarm
? {