refactor: streamline trace loading parameters and enhance logging
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details

pull/24/head
Lucas Lara García 2025-05-20 13:51:17 +02:00
parent a84372214b
commit 9d21a6fefc
1 changed files with 7 additions and 7 deletions

View File

@ -184,14 +184,14 @@ export class ClientTaskLogsComponent implements OnInit {
this.loading = true;
let params = new HttpParams()
.set('client.id', clientId)
.set('page', (this.page + 1).toString())
.set('itemsPerPage', this.itemsPerPage.toString());
const params: any = {
'client.id': clientId,
page: this.page + 1,
itemsPerPage: this.itemsPerPage,
...this.filters
};
if (this.filters['status']) {
params = params.set('status', this.filters['status']);
}
console.log('🌐 GET', `${this.baseUrl}/traces`, params);
const url = `${this.baseUrl}/traces`;