Skip to content

Commit f726aa6

Browse files
committed
fix breaking change in cron-parser
1 parent 2629b63 commit f726aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambdas/functions/control-plane/src/scale-runners/scale-down-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const logger = createChildLogger('scale-down-config.ts');
1515

1616
function inPeriod(period: ScalingDownConfig): boolean {
1717
const now = moment(new Date());
18-
const expr = parser.parseExpression(period.cron, {
18+
const expr = parser.parse(period.cron, {
1919
tz: period.timeZone,
2020
});
2121
const next = moment(expr.next().toDate());

0 commit comments

Comments
 (0)