fix(datamart): corrected endpoins due to recent sql changes
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
@@ -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
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user