feat(eom): added in hostorical data and deletion for data over 45 days

This commit is contained in:
2025-08-10 18:11:16 -05:00
parent a8a1c1d7fb
commit 52345bc94c
10 changed files with 4693 additions and 18 deletions

View File

@@ -1,15 +0,0 @@
// import {prisma} from "database";
// import {createLog} from "logging";
// export const deleteHistory = async (date: string) => {
// // delete the inventory if it equals this date
// try {
// const remove = await prisma.$executeRaw`
// DELETE FROM historyInventory
// WHERE histDate < ${date}
// `;
// createLog("general/eom", "info", `${remove} were just remove from the historical inventory for date: ${date}`);
// } catch (error) {
// createLog("general/eom", "error", `Removing historical inventory error: ${error}`);
// }
// };