Skip to content

Commit

Permalink
Merge pull request #6 from Muhammad-Magdi/fix-parse-db-queue
Browse files Browse the repository at this point in the history
fix parseDbQueue order
  • Loading branch information
Muhammad-Magdi authored Sep 21, 2024
2 parents 00c1dff + bb7e042 commit e52cde8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/queue-manager/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
};
};

Expand Down

0 comments on commit e52cde8

Please sign in to comment.