Skip to content

Commit c16effa

Browse files
committed
PM-1099 - fix check for winnings updated, update error log
1 parent caf1188 commit c16effa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/withdrawal/withdrawal.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class WithdrawalService {
187187
);
188188
} catch (error) {
189189
this.logger.error(`Failed to create payment release: ${error.message}`);
190-
throw new Error('Failed to create db entry for payment release!');
190+
throw new Error('Failed to release payment!');
191191
}
192192
});
193193
}

src/shared/payments/payments.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class PaymentsService {
119119
},
120120
});
121121

122-
if (r.count === 0 || r.count !== winningsIds.length) {
122+
if (r.count < winningsIds.length) {
123123
throw new Error(
124124
'Not all rows were updated! Please check the provided winnings IDs and status.',
125125
);

0 commit comments

Comments
 (0)