File tree 1 file changed +3
-1
lines changed 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,7 @@ export class AdminWinningService {
337
337
}
338
338
339
339
let version = payment . version ?? 1 ;
340
+ let paymentStatus = payment . payment_status as PaymentStatus ;
340
341
// Update Payment Status if requested
341
342
if ( body . paymentStatus ) {
342
343
let errMessage = '' ;
@@ -394,6 +395,7 @@ export class AdminWinningService {
394
395
) ,
395
396
) ;
396
397
version += 1 ;
398
+ paymentStatus = body . paymentStatus as PaymentStatus ;
397
399
398
400
if ( body . paymentStatus === PaymentStatus . OWED ) {
399
401
needsReconciliation = true ;
@@ -420,7 +422,7 @@ export class AdminWinningService {
420
422
PaymentStatus . OWED ,
421
423
PaymentStatus . ON_HOLD ,
422
424
PaymentStatus . ON_HOLD_ADMIN ,
423
- ] . includes ( payment . payment_status as PaymentStatus )
425
+ ] . includes ( paymentStatus )
424
426
) {
425
427
throw new BadRequestException (
426
428
`Cannot update release date for payment unless it's in one of the states: ${ [
You can’t perform that action at this time.
0 commit comments