16 lines
615 B
TypeScript
16 lines
615 B
TypeScript
// 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}`);
|
|
// }
|
|
// };
|