Fix: missing $ and use defaultStore
This commit is contained in:
parent
cbf0165893
commit
f3f2bb01b0
6 changed files with 11 additions and 14 deletions
|
|
@ -1,9 +1,7 @@
|
|||
const { asyncLocalStorage } = require('./async-storage')
|
||||
const { asyncLocalStorage, defaultStore } = require('./async-storage')
|
||||
|
||||
const computeSchema = (req, res, next) => {
|
||||
const store = new Map()
|
||||
store.set('schema', 'public')
|
||||
store.set('defaultSchema', 'ERROR_SCHEMA')
|
||||
const store = defaultStore()
|
||||
asyncLocalStorage.run(store, () => {
|
||||
next()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue