fix: async function arguments
This commit is contained in:
parent
3c38dacdc7
commit
87c3bbceee
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ const { getOperatorId } = require('../../operator')
|
||||||
|
|
||||||
const hostname = options.hostname
|
const hostname = options.hostname
|
||||||
|
|
||||||
router.use('*', async () => {
|
router.use('*', async (req, res, next) => {
|
||||||
return getOperatorId('authentication').then(({ operatorId }) => session({
|
return getOperatorId('authentication').then(({ operatorId }) => session({
|
||||||
store: new PgSession({
|
store: new PgSession({
|
||||||
pgPromise: db,
|
pgPromise: db,
|
||||||
|
|
@ -26,7 +26,7 @@ router.use('*', async () => {
|
||||||
sameSite: true,
|
sameSite: true,
|
||||||
maxAge: 60 * 10 * 1000 // 10 minutes
|
maxAge: 60 * 10 * 1000 // 10 minutes
|
||||||
}
|
}
|
||||||
}))
|
})(req, res, next))
|
||||||
})
|
})
|
||||||
|
|
||||||
module.exports = router
|
module.exports = router
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue