fix(schedule): change sorting of schedules to order by creation date

Updated the orderBy clause in the schedules query to sort by the createdAt field instead of the name, ensuring schedules are returned in the order they were created.
This commit is contained in:
Mauricio Siu
2026-04-03 14:54:34 -06:00
parent e9202bfb15
commit 964773b44c

View File

@@ -157,7 +157,7 @@ export const scheduleRouter = createTRPCRouter({
};
return db.query.schedules.findMany({
where: where[input.scheduleType],
orderBy: [asc(schedules.name)],
orderBy: [asc(schedules.createdAt)],
with: {
application: true,
server: true,