mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-12 06:59:07 +00:00
FIX: fix pipeline status sort
This commit is contained in:
@@ -191,13 +191,13 @@ export class PipelinesClientService implements OnModuleInit {
|
||||
.subscribe({
|
||||
next(x) {
|
||||
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;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
});
|
||||
resolve(statusArray);
|
||||
resolve({ status: statusArray });
|
||||
},
|
||||
error(err) {
|
||||
console.log('Observable Error');
|
||||
|
||||
Reference in New Issue
Block a user