Skip to content

Commit

Permalink
fix parseDbQueue order
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Magdi committed Sep 21, 2024
1 parent 00c1dff commit 53a4b27
Showing 1 changed file with 3 additions and 3 deletions.
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 53a4b27

Please sign in to comment.