refactor(printerdata): changed change to have a static orderby so it dose not jump all over
This commit is contained in:
@@ -4,7 +4,7 @@ import { printerData } from "../../../../../database/schema/printers.js";
|
||||
|
||||
export const getPrinters = async () => {
|
||||
const { data: printers, error: printerError } = await tryCatch(
|
||||
db.select().from(printerData)
|
||||
db.select().from(printerData).orderBy(printerData.name)
|
||||
);
|
||||
|
||||
if (printerError) {
|
||||
|
||||
Reference in New Issue
Block a user