refactor: getOperatorId return value

This commit is contained in:
José Oliveira 2022-05-02 12:19:29 +01:00
parent 5b38ac2636
commit 74b3c1a9ce
4 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ const { getOperatorId } = require('../../operator')
const hostname = options.hostname
router.use('*', async (req, res, next) => getOperatorId('authentication').then(({ operatorId }) => session({
router.use('*', async (req, res, next) => getOperatorId('authentication').then(operatorId => session({
store: new PgSession({
pgPromise: db,
tableName: USER_SESSIONS_TABLE_NAME