Comparing version 5.7.11 to 5.7.12
@@ -77,2 +77,7 @@ "use strict"; | ||
if (opts && opts.repeat) { | ||
if (opts.repeat.endDate) { | ||
if (+new Date(opts.repeat.endDate) < Date.now()) { | ||
throw new Error('End date must be greater than current timestamp'); | ||
} | ||
} | ||
return (await this.repeat).addNextRepeatableJob(name, data, Object.assign(Object.assign({}, this.jobsOpts), opts), true); | ||
@@ -79,0 +84,0 @@ } |
@@ -74,2 +74,7 @@ import { v4 } from 'uuid'; | ||
if (opts && opts.repeat) { | ||
if (opts.repeat.endDate) { | ||
if (+new Date(opts.repeat.endDate) < Date.now()) { | ||
throw new Error('End date must be greater than current timestamp'); | ||
} | ||
} | ||
return (await this.repeat).addNextRepeatableJob(name, data, Object.assign(Object.assign({}, this.jobsOpts), opts), true); | ||
@@ -76,0 +81,0 @@ } |
{ | ||
"name": "bullmq", | ||
"version": "5.7.11", | ||
"version": "5.7.12", | ||
"description": "Queue for messages and jobs based on Redis", | ||
@@ -5,0 +5,0 @@ "homepage": "https://bullmq.io/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1508545
24291