Skip to content

Commit

Permalink
fix: queue optional delete params (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenos authored Jul 3, 2024
1 parent aa8c58b commit c19edde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/queue/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export abstract class Queue {
statement_timeout: pgQueueReadWriteTimeout > 0 ? pgQueueReadWriteTimeout : undefined,
}),
application_name: 'storage-pgboss',
deleteAfterDays: pgQueueDeleteAfterHours ? undefined : pgQueueDeleteAfterDays,
...(pgQueueDeleteAfterHours ? {} : { deleteAfterDays: pgQueueDeleteAfterDays }),
...(pgQueueDeleteAfterHours ? { deleteAfterHours: pgQueueDeleteAfterHours } : {}),
archiveCompletedAfterSeconds: pgQueueArchiveCompletedAfterSeconds,
retentionDays: pgQueueRetentionDays,
Expand Down

0 comments on commit c19edde

Please sign in to comment.