lamassu-server/lib/compute-schema.js
Sérgio Salgado 990ab32583 feat: db uses asynclocalstorage set schema
feat: set user input related header in public route requests to identify schema
fix: small fixes
2021-11-16 16:46:46 +00:00

8 lines
233 B
JavaScript

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