Skip to content

Commit

Permalink
fix: Prevent logging undefined for event schedule (#1520)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson authored Jul 30, 2022
1 parent 07ec960 commit 3042bc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/events/schedule/Schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export default class Schedule {
const cron = this.#convertExpressionToCron(entry)

log.notice(
`Scheduling [${functionKey}] cron: [${cron}] input: ${stringify(
input,
)}`,
`Scheduling [${functionKey}] cron: [${cron}]${
input ? ` input: ${stringify(input)}` : ''
}`,
)

nodeSchedule.scheduleJob(cron, async () => {
Expand Down

0 comments on commit 3042bc2

Please sign in to comment.