fix: variable operator id variable name
This commit is contained in:
parent
bca6e15356
commit
3c38dacdc7
3 changed files with 6 additions and 4 deletions
|
|
@ -10,13 +10,13 @@ const { getOperatorId } = require('../../operator')
|
|||
const hostname = options.hostname
|
||||
|
||||
router.use('*', async () => {
|
||||
return getOperatorId('authentication').then(secret => session({
|
||||
return getOperatorId('authentication').then(({ operatorId }) => session({
|
||||
store: new PgSession({
|
||||
pgPromise: db,
|
||||
tableName: USER_SESSIONS_TABLE_NAME
|
||||
}),
|
||||
name: 'lamassu_sid',
|
||||
secret: secret,
|
||||
secret: operatorId,
|
||||
resave: false,
|
||||
saveUninitialized: false,
|
||||
cookie: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue