feat(new command): helper command to remove as non reusable pallets

This commit is contained in:
2025-06-11 20:50:43 -05:00
parent 6156a1a5bb
commit 353960bd26
7 changed files with 314 additions and 2 deletions

View File

@@ -6,6 +6,8 @@ import { labelingProcess } from "../../controller/labeling/labelProcess.js";
import { bookInLabel } from "../../controller/labeling/bookIn.js";
import { createSSCC } from "../../../../globalUtils/createSSCC.js";
import { apiHit } from "../../../../globalUtils/apiHits.js";
import { db } from "../../../../../database/dbclient.js";
import { commandLog } from "../../../../../database/schema/commandLog.js";
const app = new OpenAPIHono({ strict: false });
@@ -49,6 +51,13 @@ app.openapi(
const newLabel: any = bookinLabel;
//console.log(newLabel);
const { data: commandL, error: ce } = await tryCatch(
db.insert(commandLog).values({
commandUsed: "bookin",
bodySent: bodyData,
})
);
return c.json({
success: newLabel.success,
message: newLabel.message,