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.
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.