@joystick.js/node-canary 0.0.0-canary.337 → 0.0.0-canary.338

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.
@@ -60,8 +60,7 @@ class Queue {
60
60
  ...options,
61
61
  nextRunAt
62
62
  };
63
- console.log("JOBS", this.options.jobs);
64
- const job_definition = this.options.jobs[options?.job];
63
+ const job_definition = this?.options?.jobs[options?.job];
65
64
  if (job_definition && typeof job_definition?.preflight?.onBeforeAdd === "function") {
66
65
  const canAddJob = await job_definition?.preflight?.onBeforeAdd(job_to_add, this.db._connection, `queue_${this.name}`);
67
66
  if (!canAddJob) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
- "version": "0.0.0-canary.337",
3
+ "version": "0.0.0-canary.338",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",