Skip to content

Commit 451bec8

Browse files
committed
add logs
1 parent dbdc3ce commit 451bec8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/routes/copilotRequest/approveRequest.service.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ module.exports = (req, data, existingTransaction) => {
6666
.create(data, { transaction });
6767
}))
6868
.then(async (opportunity) => {
69+
// eslint-disable-next-line no-console
70+
console.time('getRolesByRoleName');
6971
const roles = await util.getRolesByRoleName(USER_ROLE.TC_COPILOT, req.log, req.id);
72+
// eslint-disable-next-line no-console
73+
console.timeEnd('getRolesByRoleName');
7074
const { subjects = [] } = await util.getRoleInfo(roles[0], req.log, req.id);
7175
const emailEventType = CONNECT_NOTIFICATION_EVENT.EXTERNAL_ACTION_EMAIL;
7276
const copilotPortalUrl = config.get('copilotPortalUrl');

0 commit comments

Comments
 (0)