From c4c4155d52047c07aed0eafd9e1c767f6dc2a2aa Mon Sep 17 00:00:00 2001 From: CL TheDreWen Date: Mon, 15 Dec 2025 09:50:35 +0100 Subject: [PATCH] fix(commands): sort services by ID in follow and uptime commands --- src/commands/utility/follow.command.ts | 3 +-- src/commands/utility/uptime.command.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/utility/follow.command.ts b/src/commands/utility/follow.command.ts index 6a6808e..2e109e6 100644 --- a/src/commands/utility/follow.command.ts +++ b/src/commands/utility/follow.command.ts @@ -55,8 +55,7 @@ const cmd: CommandDefinition = { name: 'service', execute: async (interaction) => { - const services = await statusService.serviceRepo.find({where: {notify: true}}); - + const services = await statusService.serviceRepo.find({where: {notify: true}, order: {id: 'ASC'}}); interaction.respond(services.map((v) => ({name: v.name, value: v.name}))); } } diff --git a/src/commands/utility/uptime.command.ts b/src/commands/utility/uptime.command.ts index 7140834..f29983b 100644 --- a/src/commands/utility/uptime.command.ts +++ b/src/commands/utility/uptime.command.ts @@ -44,7 +44,7 @@ const cmd: CommandDefinition = { { name: 'service', execute: async (interaction) => { - const services = await statusService.serviceRepo.find(); + const services = await statusService.serviceRepo.find({order: {id: 'ASC'}}); interaction.respond(services.map((v) => ({name: v.name, value: v.name}))); } }