Skip to content

Commit 0c4e811

Browse files
committed
If we were in typescript or java this bug would not have happened, just saying
1 parent 9d56d52 commit 0c4e811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/org.controller/org.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ async function resetSecret (req, res, next) {
12561256
}
12571257

12581258
const oldUser = await userRepo.findOneByUserNameAndOrgUUID(username, orgUUID, null, { session })
1259-
const oldUserRegistry = await userRegistryRepo.findOneByUserNameAndOrgUUID(username, orgRegUUID, { session })
1259+
const oldUserRegistry = await userRegistryRepo.findOneByUserNameAndOrgUUID(username, orgRegUUID, null, { session })
12601260

12611261
if (!oldUser && !oldUserRegistry) {
12621262
logger.info({ uuid: req.ctx.uuid, messsage: username + ' user does not exist.' })

0 commit comments

Comments
 (0)