File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,8 @@ impl DashboardMetadata {
87
87
org_id : String ,
88
88
data_types : Vec < enums:: DashboardMetadata > ,
89
89
) -> StorageResult < Vec < Self > > {
90
- let predicate = dsl:: user_id
91
- . is_null ( )
92
- . and ( dsl:: merchant_id. eq ( merchant_id) )
90
+ let predicate = dsl:: merchant_id
91
+ . eq ( merchant_id)
93
92
. and ( dsl:: org_id. eq ( org_id) )
94
93
. and ( dsl:: data_key. eq_any ( data_types) ) ;
95
94
Original file line number Diff line number Diff line change @@ -276,8 +276,7 @@ impl DashboardMetadataInterface for MockDb {
276
276
let query_result = dashboard_metadata
277
277
. iter ( )
278
278
. filter ( |metadata_inner| {
279
- metadata_inner. user_id . is_none ( )
280
- && metadata_inner. merchant_id == merchant_id
279
+ metadata_inner. merchant_id == merchant_id
281
280
&& metadata_inner. org_id == org_id
282
281
&& data_keys. contains ( & metadata_inner. data_key )
283
282
} )
You can’t perform that action at this time.
0 commit comments