Skip to content

Commit b8ceda0

Browse files
committed
More npe stuff
1 parent fc40bd7 commit b8ceda0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/repositories/baseUserRepository.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,12 @@ class BaseUserRepository extends BaseRepository {
316316

317317
const legOrgUUID = await baseOrgRepository.getOrgUUID(orgShortName, options, true)
318318
const legUser = await legacyUserRepo.findOneByUserNameAndOrgUUID(username, legOrgUUID, null, options)
319-
const regUser = await this.findOneByUsernameAndOrgShortname(username, orgShortName, options, isLegacyObject)
319+
const regUser = await this.findOneByUsernameAndOrgShortname(username, orgShortName, options, false)
320320

321321
const randomKey = cryptoRandomString({ length: getConstants().CRYPTO_RANDOM_STRING_LENGTH })
322322
const secret = await argon2.hash(randomKey)
323323
legUser.secret = secret
324324
regUser.secret = secret
325-
326325
await legUser.save({ options })
327326
await regUser.save({ options })
328327

0 commit comments

Comments
 (0)