fix: potential NaN as delay time when scheduling

This commit is contained in:
alikia2x (寒寒) 2025-03-23 20:30:06 +08:00
parent 7768a202b2
commit b654eb3643
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

@ -97,6 +97,11 @@ const getAdjustedShortTermETA = async (client: Client, aid: number) => {
minETAHours = adjustedETA;
}
}
if (isNaN(minETAHours)) {
minETAHours = Infinity;
}
return minETAHours;
};