chore: remove db $ instances

fix: add compute-schema file
fix: to_timestamp() psql usage

chore: rephrase expired session deletion
This commit is contained in:
Sérgio Salgado 2021-09-15 15:43:39 +01:00
parent 2e45098033
commit 0272dc2bd1
3 changed files with 13 additions and 3 deletions

10
lib/compute-schema.js Normal file
View file

@ -0,0 +1,10 @@
const { asyncLocalStorage, defaultStore } = require('./async-storage')
const computeSchema = (req, res, next) => {
const store = defaultStore()
asyncLocalStorage.run(store, () => {
next()
})
}
module.exports = computeSchema