Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function buildUrl(baseUrl, query) {
return query !== false && baseUrl + buildQuery(query);
}
query.orderBy = [`${sortBy} desc`];
}
} else if (this.initialSort && this.initialSort.length) {
query.orderBy = this.initialSort;
}
if (filters) {
const filterQuery = { and: [] };
filters.forEach(filter => {
filterQuery.and.push(filter.getFilter());
});
query.filter = filterQuery;
}
url = url + buildQuery(query);
return this.httpClient.get(url) as Observable;
}