diamondio/better-queue-sql

Most recent version broken with PostgreSQL?

Closed this issue · 4 comments

I have the latest version of better-queue and better-queue-sql installed, verified that this morning. After the update to the most recent version however, whenever I attempt to push out a message I get this error.

TypeError: this.knex.raw(...).then(...).error is not a function
    at PostgresAdapter.initialize (node_modules\better-queue-sql\postgres.js:63:6)
    at PostgresAdapter.connect (node_modules\better-queue-sql\postgres.js:31:8)
    at SqlStore.connect (node_modules\better-queue-sql\index.js:53:16)
    at Queue._connectToStore (node_modules\better-queue\lib\queue.js:169:15)
    at Queue.use (node_modules\better-queue\lib\queue.js:159:8)
    at new Queue (node_modules\better-queue\lib\queue.js:80:8)**

I've step debugged to insure that the store object being passed to better-queue has valid information for my database, it does. I'm hoping this is an easy fix, any help would be appreciated.

Hi, can you try downgrading to 1.0.3 and see if it fixes it? If so I will revert the push yesterday

Nvm fixed and pushed in 1.0.5

Thank you @leanderlee