Skip to content

Commit fb90572

Browse files
authored
Remove redundant identity uniqueness check in member merge (#2834)
1 parent b5132ba commit fb90572

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

backend/src/database/repositories/memberRepository.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -543,19 +543,14 @@ class MemberRepository {
543543
const tenant = SequelizeRepository.getCurrentTenant(options)
544544

545545
for (const i of identitiesToMove) {
546-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
547-
const { rowCount } = await moveToNewMember(qx, {
546+
await moveToNewMember(qx, {
548547
tenantId: tenant.id,
549548
oldMemberId: fromMemberId,
550549
newMemberId: toMemberId,
551550
platform: i.platform,
552551
value: i.value,
553552
type: i.type,
554553
})
555-
556-
if (rowCount !== 1) {
557-
throw new Error('One row should be updated!')
558-
}
559554
}
560555

561556
if (identitiesToUpdate.length > 0) {

0 commit comments

Comments
 (0)