Alteração para mostrar ordem das filas pelo id e não mais pelo nome

pull/1/head
adriano 2022-04-29 08:30:43 -03:00
parent 02b36b6bf7
commit 6f48e9aa1e
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import Queue from "../../models/Queue"; import Queue from "../../models/Queue";
const ListQueuesService = async (): Promise<Queue[]> => { const ListQueuesService = async (): Promise<Queue[]> => {
const queues = await Queue.findAll({ order: [["name", "ASC"]] }); const queues = await Queue.findAll({ order: [["id", "ASC"]] });
return queues; return queues;
}; };