File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -102,15 +102,11 @@ impl Payouts {
102
102
status : Option < Vec < enums:: PayoutStatus > > ,
103
103
payout_type : Option < Vec < enums:: PayoutType > > ,
104
104
) -> StorageResult < i64 > {
105
- let active_payout_ids_str: Vec < String > = active_payout_ids
106
- . iter ( )
107
- . map ( |pid| pid. get_string_repr ( ) . to_string ( ) )
108
- . collect ( ) ;
109
105
let mut filter = <Self as HasTable >:: table ( )
110
106
. inner_join ( payout_attempt:: table. on ( payout_attempt:: dsl:: payout_id. eq ( dsl:: payout_id) ) )
111
107
. count ( )
112
108
. filter ( dsl:: merchant_id. eq ( merchant_id. to_owned ( ) ) )
113
- . filter ( dsl:: payout_id. eq_any ( active_payout_ids_str ) )
109
+ . filter ( dsl:: payout_id. eq_any ( active_payout_ids . to_vec ( ) ) )
114
110
. into_boxed ( ) ;
115
111
116
112
if let Some ( connector) = connector {
Original file line number Diff line number Diff line change @@ -1142,7 +1142,7 @@ diesel::table! {
1142
1142
use diesel:: sql_types:: * ;
1143
1143
use crate :: enums:: diesel_exports:: * ;
1144
1144
1145
- payout_attempt ( payout_attempt_id , merchant_id ) {
1145
+ payout_attempt ( merchant_id , payout_attempt_id ) {
1146
1146
#[ max_length = 64 ]
1147
1147
payout_attempt_id -> Varchar ,
1148
1148
#[ max_length = 64 ]
@@ -1188,7 +1188,7 @@ diesel::table! {
1188
1188
use diesel:: sql_types:: * ;
1189
1189
use crate :: enums:: diesel_exports:: * ;
1190
1190
1191
- payouts ( payout_id , merchant_id ) {
1191
+ payouts ( merchant_id , payout_id ) {
1192
1192
#[ max_length = 64 ]
1193
1193
payout_id -> Varchar ,
1194
1194
#[ max_length = 64 ]
Original file line number Diff line number Diff line change @@ -1082,7 +1082,7 @@ diesel::table! {
1082
1082
use diesel:: sql_types:: * ;
1083
1083
use crate :: enums:: diesel_exports:: * ;
1084
1084
1085
- payout_attempt ( payout_attempt_id , merchant_id ) {
1085
+ payout_attempt ( merchant_id , payout_attempt_id ) {
1086
1086
#[ max_length = 64 ]
1087
1087
payout_attempt_id -> Varchar ,
1088
1088
#[ max_length = 64 ]
@@ -1128,7 +1128,7 @@ diesel::table! {
1128
1128
use diesel:: sql_types:: * ;
1129
1129
use crate :: enums:: diesel_exports:: * ;
1130
1130
1131
- payouts ( payout_id , merchant_id ) {
1131
+ payouts ( merchant_id , payout_id ) {
1132
1132
#[ max_length = 64 ]
1133
1133
payout_id -> Varchar ,
1134
1134
#[ max_length = 64 ]
You can’t perform that action at this time.
0 commit comments