fix: store operator id for each service
This commit is contained in:
parent
9b28c6a3f1
commit
8884c75ffd
4 changed files with 14 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
const { getOperatorId } = require('../operator')
|
||||
|
||||
function findOperatorId (req, res, next) {
|
||||
return getOperatorId()
|
||||
return getOperatorId('middleware')
|
||||
.then(({ id }) => {
|
||||
res.locals.operatorId = id
|
||||
return next()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue