diff --git a/package.json b/package.json index 0ef9f00..22accc7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pgmq-js", - "version": "1.2.0", + "version": "1.2.1", "description": "Postgres Message Queue (PSMQ) JavaScript Client Library", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/src/queue-manager/helpers.ts b/src/queue-manager/helpers.ts index 9da3085..5eb371b 100644 --- a/src/queue-manager/helpers.ts +++ b/src/queue-manager/helpers.ts @@ -4,9 +4,9 @@ export const parseDbQueue = (q: string): Queue => { const parts = q.substring(1, q.length - 1).split(','); return { name: parts[0], - createdAt: new Date(parts[1]), - isPartitioned: parts[2] === 't', - isUnlogged: parts[3] === 't', + isPartitioned: parts[1] === 't', + isUnlogged: parts[2] === 't', + createdAt: new Date(parts[3]), }; };