Skip to content

Commit

Permalink
fix /operators bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyUB committed Feb 4, 2025
1 parent dd31989 commit 919e55b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions routes/department.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,11 @@ router.get('/:departmentid/operators', [passport.authenticate(['basic', 'jwt'],


var context = {req:req};
var operatorsResult = await departmentService.getOperators(req.params.departmentid, req.projectid, req.query.nobot, disableWebHookCall, context);
winston.debug("Getting department operators operatorsResult", operatorsResult);
var operatorsResult = await departmentService.getOperators(req.params.departmentid, req.projectid, req.query.nobot, disableWebHookCall, context);
winston.debug("Getting department operators operatorsResult", operatorsResult);



return res.json(operatorsResult);
delete operatorsResult.context;
return res.status(200).send(operatorsResult);

});

Expand Down

0 comments on commit 919e55b

Please sign in to comment.