Skip to content

Commit 6ed991d

Browse files
committed
Pintxo:: Why?
no entenc per que es fa aquesta cerca i mamar els filtres sense columna
1 parent b0c5d4f commit 6ed991d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

eda/eda_api/lib/services/query-builder/qb-systems/mongodb-builder-service.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,26 @@ export class MongoDBBuilderService {
6161
}
6262

6363
public getFilters() {
64+
65+
/* Alex: Per que vas fer aixó?
6466
const columns = this.queryTODO.fields;
65-
6667
const filters = this.queryTODO.filters.filter((f: any) => {
68+
6769
const column = columns.find((c: any) => f.filter_table == c.table_id && f.filter_column == c.column_name);
6870
f.column_type = column?.column_type || 'text';
71+
6972
7073
if (column && column?.aggregation_type && column?.aggregation_type === 'none') {
7174
return true;
7275
} else {
7376
return false;
7477
}
78+
7579
});
80+
*/
7681

77-
if (filters.length > 0) {
78-
return this.formatFilter(filters);
82+
if (this.queryTODO.filters.length > 0) {
83+
return this.formatFilter(this.queryTODO.filters);
7984
} else {
8085
return null;
8186
}

0 commit comments

Comments
 (0)