pg-boss 10.1.5 → 10.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/timekeeper.js +1 -1
package/package.json
CHANGED
package/src/timekeeper.js
CHANGED
|
@@ -144,7 +144,7 @@ class Timekeeper extends EventEmitter {
|
|
|
144
144
|
const scheduled = schedules
|
|
145
145
|
.filter(i => this.shouldSendIt(i.cron, i.timezone))
|
|
146
146
|
.map(({ name, data, options }) =>
|
|
147
|
-
({ name: QUEUES.SEND_IT, data: { name, data, options }, singletonKey: name, singletonSeconds: 60 }))
|
|
147
|
+
({ name: QUEUES.SEND_IT, data: { name, data, ...options }, singletonKey: name, singletonSeconds: 60 }))
|
|
148
148
|
|
|
149
149
|
if (scheduled.length > 0 && !this.stopped) {
|
|
150
150
|
await this.manager.insert(scheduled)
|