mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +00:00
Update sort order for monitorStatusTimelines
This commit is contained in:
parent
ac0bafe560
commit
899649d55e
@ -755,7 +755,7 @@ export default class StatusPageAPI extends BaseAPI<
|
||||
} as any,
|
||||
},
|
||||
sort: {
|
||||
createdAt: SortOrder.Descending,
|
||||
createdAt: SortOrder.Ascending,
|
||||
},
|
||||
skip: 0,
|
||||
limit: LIMIT_INFINITY, // This can be optimized.
|
||||
@ -764,8 +764,7 @@ export default class StatusPageAPI extends BaseAPI<
|
||||
},
|
||||
});
|
||||
|
||||
monitorStatusTimelines =
|
||||
monitorStatusTimelines.reverse();
|
||||
|
||||
|
||||
monitorStatusTimelines = monitorStatusTimelines.concat(
|
||||
await MonitorStatusTimelineService.findBy({
|
||||
@ -786,7 +785,7 @@ export default class StatusPageAPI extends BaseAPI<
|
||||
} as any,
|
||||
},
|
||||
sort: {
|
||||
createdAt: SortOrder.Descending,
|
||||
createdAt: SortOrder.Ascending,
|
||||
},
|
||||
skip: 0,
|
||||
limit: LIMIT_INFINITY, // This can be optimized.
|
||||
@ -795,9 +794,6 @@ export default class StatusPageAPI extends BaseAPI<
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
monitorStatusTimelines =
|
||||
monitorStatusTimelines.reverse();
|
||||
}
|
||||
|
||||
// check if status page has active incident.
|
||||
|
Loading…
Reference in New Issue
Block a user