pg-boss 11.0.7 → 11.0.8

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/plans.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-boss",
3
- "version": "11.0.7",
3
+ "version": "11.0.8",
4
4
  "description": "Queueing jobs in Postgres from Node.js like a boss",
5
5
  "main": "./src/index.js",
6
6
  "type": "commonjs",
@@ -62,6 +62,6 @@
62
62
  "bugs": {
63
63
  "url": "https://github.com/timgit/pg-boss/issues"
64
64
  },
65
- "homepage": "https://github.com/timgit/pg-boss#readme",
65
+ "homepage": "https://timgit.github.io/pg-boss",
66
66
  "types": "./types.d.ts"
67
67
  }
package/src/plans.js CHANGED
@@ -943,7 +943,7 @@ function getQueueStats (schema, table, queues) {
943
943
  (count(*) FILTER (WHERE state < '${JOB_STATES.active}'))::int as "queuedCount",
944
944
  (count(*) FILTER (WHERE state = '${JOB_STATES.active}'))::int as "activeCount",
945
945
  count(*)::int as "totalCount",
946
- array_agg(singleton_key) FILTER (WHERE policy IN ('${QUEUE_POLICIES.singleton}','${QUEUE_POLICIES.stately}') AND state IN ('${JOB_STATES.retry}','${JOB_STATES.active}')) as "singletonsActive"
946
+ array_agg(singleton_key) FILTER (WHERE policy IN ('${QUEUE_POLICIES.singleton}','${QUEUE_POLICIES.stately}') AND state = '${JOB_STATES.active}') as "singletonsActive"
947
947
  FROM ${schema}.${table}
948
948
  WHERE name IN (${getQueueInClause(queues)})
949
949
  GROUP BY 1