qdone 2.0.4-alpha → 2.0.5-alpha

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "qdone",
3
- "version": "2.0.4-alpha",
3
+ "version": "2.0.5-alpha",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "qdone",
9
- "version": "2.0.4-alpha",
9
+ "version": "2.0.5-alpha",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@aws-sdk/client-cloudwatch": "^3.465.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qdone",
3
- "version": "2.0.4-alpha",
3
+ "version": "2.0.5-alpha",
4
4
  "description": "Language agnostic job queue for SQS",
5
5
  "type": "module",
6
6
  "main": "./index.js",
package/src/worker.js CHANGED
@@ -227,7 +227,7 @@ export async function listen (queues, options) {
227
227
  if (opt.activeOnly) {
228
228
  debug({ pairsBeforeCheck: pairs })
229
229
  await Promise.all(pairs.map(async pair => {
230
- const { idle } = await cheapIdleCheck(pair.qname, pair.qrl, opt)
230
+ const { result: { idle } } = await cheapIdleCheck(pair.qname, pair.qrl, opt)
231
231
  if (!idle) activePairs.push(pair)
232
232
  }))
233
233
  }