@joystick.js/node-canary 0.0.0-canary.317 → 0.0.0-canary.319

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.
@@ -83,13 +83,14 @@ var queues_default = {
83
83
  WHERE
84
84
  status = $1
85
85
  AND
86
- next_run_at::timestamp <= NOW()
86
+ next_run_at::timestamp <= $2
87
87
  AND
88
88
  locked_by IS NULL
89
89
  ORDER BY
90
90
  next_run_at ASC
91
91
  `, [
92
- "pending"
92
+ "pending",
93
+ new Date().toISOString()
93
94
  ]);
94
95
  console.log({ nextJob });
95
96
  if (nextJob?._id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
- "version": "0.0.0-canary.317",
3
+ "version": "0.0.0-canary.319",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",