multimeric / koa-pg-session

A model implementation of sessions for koa using postgres as the backend
10 stars 7 forks source link

Error: Query values must be an array #12

Open ghost opened 6 years ago

ghost commented 6 years ago

Not sure if this package is still being maintained, but I noticed that in the scheduleCleanup method, the value being passed to the query() method, the date value, should be an array, i.e.

sess.query(sess.cleanupSql, [Date.now() / 1000])

otherwise postgresql complains that query values should be an array or something similar.

multimeric commented 6 years ago

I believe this module is now deprecated because of the deprecation of koa-generic-session. Refer to the official module instead: https://github.com/koajs/session#external-session-stores