test(ocme): cycle count intital improvements
This commit is contained in:
@@ -6,6 +6,7 @@ import postRunningNr from "./route/postRunningNumber.js";
|
||||
import pickedup from "./route/pickedUp.js";
|
||||
import postsscc from "./route/postSSCC.js";
|
||||
import getShipments from "./route/getShipmentPallets.js";
|
||||
import cycleCount from "./route/cycleCount.js";
|
||||
import {serve} from "@hono/node-server";
|
||||
import {createLog} from "../logger/logger.js";
|
||||
import {db} from "../../../database/dbclient.js";
|
||||
@@ -13,7 +14,7 @@ import {settings} from "../../../database/schema/settings.js";
|
||||
|
||||
const app = new OpenAPIHono();
|
||||
const port = process.env.OCME_PORT;
|
||||
const routes = [getInfo, postRunningNr, postsscc, pickedup, getShipments] as const;
|
||||
const routes = [getInfo, postRunningNr, postsscc, pickedup, getShipments, cycleCount] as const;
|
||||
const setting = await db.select().from(settings);
|
||||
|
||||
const isActive = setting.filter((n) => n.name === "ocmeService");
|
||||
|
||||
Reference in New Issue
Block a user