File tree 1 file changed +8
-3
lines changed
eda/eda_api/lib/services/query-builder/qb-systems
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -61,21 +61,26 @@ export class MongoDBBuilderService {
61
61
}
62
62
63
63
public getFilters ( ) {
64
+
65
+ /* Alex: Per que vas fer aixó?
64
66
const columns = this.queryTODO.fields;
65
-
66
67
const filters = this.queryTODO.filters.filter((f: any) => {
68
+
67
69
const column = columns.find((c: any) => f.filter_table == c.table_id && f.filter_column == c.column_name);
68
70
f.column_type = column?.column_type || 'text';
71
+
69
72
70
73
if (column && column?.aggregation_type && column?.aggregation_type === 'none') {
71
74
return true;
72
75
} else {
73
76
return false;
74
77
}
78
+
75
79
});
80
+ */
76
81
77
- if ( filters . length > 0 ) {
78
- return this . formatFilter ( filters ) ;
82
+ if ( this . queryTODO . filters . length > 0 ) {
83
+ return this . formatFilter ( this . queryTODO . filters ) ;
79
84
} else {
80
85
return null ;
81
86
}
You can’t perform that action at this time.
0 commit comments