Skip to content

Commit eb233d5

Browse files
authored
fix: status-page maintenances order desc (openstatusHQ#1791)
1 parent b262f5b commit eb233d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/api/src/router/statusPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ export const statusPageRouter = createTRPCRouter({
367367
});
368368

369369
const maintenances = _page.maintenances.sort(
370-
(a, b) => a.from.getTime() - b.from.getTime(),
370+
(a, b) => b.from.getTime() - a.from.getTime(),
371371
);
372372

373373
return selectPublicPageSchemaWithRelation.parse({

0 commit comments

Comments
 (0)