fix(datamart): corrected endpoins due to recent sql changes

This commit is contained in:
2025-04-24 22:58:39 -05:00
parent 2bc9e88588
commit b74a197778
2 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ app.openapi(
// "Provided a running number and lot number you can consume material.", // "Provided a running number and lot number you can consume material.",
responses: responses(), responses: responses(),
}), }),
async (c) => { async (c: any) => {
//apiHit(c, { endpoint: "api/sqlProd/close" }); //apiHit(c, { endpoint: "api/sqlProd/close" });
const { data: ppoo, error } = await tryCatch(getPPOO()); const { data: ppoo, error } = await tryCatch(getPPOO());

View File

@@ -20,7 +20,7 @@ app.openapi(
// "Creates a silo adjustment for the silo if and stores the stock numbers.", // "Creates a silo adjustment for the silo if and stores the stock numbers.",
responses: responses(), responses: responses(),
}), }),
async (c) => { async (c: any) => {
//apiHit(c, { endpoint: "api/sqlProd/close" }); //apiHit(c, { endpoint: "api/sqlProd/close" });
try { try {
@@ -29,9 +29,9 @@ app.openapi(
const silo = await getStockSiloData(); const silo = await getStockSiloData();
return c.json( return c.json(
{ {
success: silo.success, success: silo?.success ?? false,
message: silo.message, message: silo?.message ?? "Failed to get silo data",
data: silo.data, data: silo?.data ?? [],
}, },
200 200
); );