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.",
responses: responses(),
}),
async (c) => {
async (c: any) => {
//apiHit(c, { endpoint: "api/sqlProd/close" });
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.",
responses: responses(),
}),
async (c) => {
async (c: any) => {
//apiHit(c, { endpoint: "api/sqlProd/close" });
try {
@@ -29,9 +29,9 @@ app.openapi(
const silo = await getStockSiloData();
return c.json(
{
success: silo.success,
message: silo.message,
data: silo.data,
success: silo?.success ?? false,
message: silo?.message ?? "Failed to get silo data",
data: silo?.data ?? [],
},
200
);