Compare commits

...
1 Commits
Author SHA1 Message Date
rodrigo.zamboni eed57ff039 FIX: fix pipeline status sort 2022-04-29 12:42:49 -03:00
+2 -2
View File
@@ -191,13 +191,13 @@ export class PipelinesClientService implements OnModuleInit {
.subscribe({ .subscribe({
next(x) { next(x) {
const statusArray = x.status.sort((a, b) => { const statusArray = x.status.sort((a, b) => {
if (Date.parse(a.updated_at) < Date.parse(b.updated_at)) { if (a.id < b.id) {
return 1; return 1;
} else { } else {
return -1; return -1;
} }
}); });
resolve(statusArray); resolve({ status: statusArray });
}, },
error(err) { error(err) {
console.log('Observable Error'); console.log('Observable Error');