Skip to content

Commit 9533a0d

Browse files
committed
debug: removed extra debug
ref issue #144
1 parent 6f7abdd commit 9533a0d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/common/helper.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,13 +957,11 @@ function getAuditM2Muser () {
957957
*/
958958
async function checkIsMemberOfProject (userId, projectId) {
959959
const m2mToken = await getM2MToken()
960-
localLogger.debug({ context: 'checkIsMemberOfProject', message: `m2mToken: ${m2mToken}` })
961960
const res = await request
962961
.get(`${config.TC_API}/projects/${projectId}`)
963962
.set('Authorization', `Bearer ${m2mToken}`)
964963
.set('Content-Type', 'application/json')
965964
.set('Accept', 'application/json')
966-
localLogger.debug({ context: 'checkIsMemberOfProject', message: `got project object ${projectId}: ${JSON.stringify(res.body)}` })
967965
const memberIdList = _.map(res.body.members, 'userId')
968966
localLogger.debug({ context: 'checkIsMemberOfProject', message: `the members of project ${projectId}: ${JSON.stringify(memberIdList)}, authUserId: ${JSON.stringify(userId)}` })
969967
if (!memberIdList.includes(userId)) {

0 commit comments

Comments
 (0)