refactor: getOperatorId return value
This commit is contained in:
parent
5b38ac2636
commit
74b3c1a9ce
4 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ const { getOperatorId } = require('../operator')
|
|||
|
||||
function findOperatorId (req, res, next) {
|
||||
return getOperatorId('middleware')
|
||||
.then(({ operatorId }) => {
|
||||
.then(operatorId => {
|
||||
res.locals.operatorId = operatorId
|
||||
return next()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue