test(silo): backend silo stuff

This commit is contained in:
2025-04-08 06:48:12 -05:00
parent b630bae50d
commit b4a4dfcb75
9 changed files with 227 additions and 13 deletions

View File

@@ -6,6 +6,7 @@ import { tryCatch } from "../../../../globalUtils/tryCatch.js";
import { lstAuth } from "../../../../index.js";
import { db } from "../../../../../database/dbclient.js";
import { createLog } from "../../../logger/logger.js";
import { assignedPrinters } from "../../utils/checkAssignments.js";
export const updatePrinters = async () => {
const currentTime = new Date(Date.now());
@@ -80,5 +81,7 @@ export const updatePrinters = async () => {
);
}
await assignedPrinters();
return { success: true, message: "Printers were just added or updated." };
};