fix: variable operator id variable name
This commit is contained in:
parent
bca6e15356
commit
3c38dacdc7
3 changed files with 6 additions and 4 deletions
|
|
@ -2,8 +2,8 @@ const { getOperatorId } = require('../operator')
|
|||
|
||||
function findOperatorId (req, res, next) {
|
||||
return getOperatorId('middleware')
|
||||
.then(({ id }) => {
|
||||
res.locals.operatorId = id
|
||||
.then(({ operatorId }) => {
|
||||
res.locals.operatorId = operatorId
|
||||
return next()
|
||||
})
|
||||
.catch(e => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue