We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5132ba commit fb90572Copy full SHA for fb90572
backend/src/database/repositories/memberRepository.ts
@@ -543,19 +543,14 @@ class MemberRepository {
543
const tenant = SequelizeRepository.getCurrentTenant(options)
544
545
for (const i of identitiesToMove) {
546
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
547
- const { rowCount } = await moveToNewMember(qx, {
+ await moveToNewMember(qx, {
548
tenantId: tenant.id,
549
oldMemberId: fromMemberId,
550
newMemberId: toMemberId,
551
platform: i.platform,
552
value: i.value,
553
type: i.type,
554
})
555
-
556
- if (rowCount !== 1) {
557
- throw new Error('One row should be updated!')
558
- }
559
}
560
561
if (identitiesToUpdate.length > 0) {
0 commit comments