Skip to content

Commit

Permalink
fix: onScheduleWithNestApplicationFactory fix
Browse files Browse the repository at this point in the history
- fixed issue where cron minute/number values were passed instead of a cron expression
  • Loading branch information
dereekb committed Oct 5, 2022
1 parent c8cd590 commit 3736e30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function onScheduleWithNestApplicationFactory(baseSchedule?: OnScheduleCo
}

return (nestAppPromiseGetter: NestApplicationPromiseGetter) => {
let builder = functions.pubsub.schedule(schedule.cron as string).retryConfig(schedule);
let builder = functions.pubsub.schedule(cron).retryConfig(schedule);

if (schedule.timezone) {
builder = builder.timeZone(schedule.timezone);
Expand Down

0 comments on commit 3736e30

Please sign in to comment.