File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ export class AdminService {
52
52
}
53
53
: undefined ,
54
54
} ,
55
+ include : {
56
+ winnings : true ,
57
+ } ,
55
58
} ) ;
56
59
}
57
60
@@ -119,6 +122,18 @@ export class AdminService {
119
122
} ,
120
123
} ) ,
121
124
) ;
125
+
126
+ if ( payment . installment_number === 1 ) {
127
+ transactions . push ( ( tx ) =>
128
+ this . addAudit (
129
+ userId ,
130
+ winningsId ,
131
+ `Modified payment description from "${ payment . winnings . description } " to "${ body . description } "` ,
132
+ body . auditNote ,
133
+ tx ,
134
+ ) ,
135
+ ) ;
136
+ }
122
137
}
123
138
124
139
let paymentStatus = payment . payment_status as PaymentStatus ;
@@ -546,6 +561,7 @@ export class AdminService {
546
561
} ,
547
562
} ,
548
563
take : 1000 ,
564
+ orderBy : { created_at : 'desc' } ,
549
565
} ) ;
550
566
551
567
result . data = audits . map ( ( item ) => ( {
You can’t perform that action at this time.
0 commit comments