fix(server/cron): list expression should use >=

Resolves #366.
This commit is contained in:
Linden
2023-07-10 08:50:26 +10:00
parent c6f621fba5
commit 6ab719654f

View File

@@ -78,8 +78,8 @@ local function getTimeUnit(value, unit)
for listValue in string.gmatch(value, '%d+') --[[@as number]] do for listValue in string.gmatch(value, '%d+') --[[@as number]] do
listValue = tonumber(listValue) listValue = tonumber(listValue)
-- if current minute is less than in the expression 0,10,20,45 * * * * -- e.g. if current time is less than in the expression 0,10,20,45 * * * *
if listValue > currentTime then if listValue >= currentTime then
return listValue return listValue
end end
end end