fix(siloadjustmnets): corrected the silo adjustments to account for removed middleware

This commit is contained in:
2025-10-28 19:39:08 -05:00
parent 78a5a4a398
commit e9ff8bb4cb
6 changed files with 32 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ import jwt from "jsonwebtoken";
const { sign, verify } = jwt;
export const authMiddleware: MiddlewareHandler = async (c, next) => {
// console.log("middleware checked");
console.log("middleware checked");
// const cookieHeader = c.req.header("Cookie");
// if (!cookieHeader) return c.json({ error: "Unauthorized" }, 401);

View File

@@ -44,7 +44,7 @@ app.openapi(
try {
try {
//return apiReturn(c, true, access?.message, access?.data, 200);
const createSiloAdj = await createSiloAdjustment(data, c.get("user"));
const createSiloAdj = await createSiloAdjustment(data, data.username);
return c.json(
{

View File

@@ -55,7 +55,7 @@ app.openapi(
adjId,
data.comment,
data.key,
c.get("user"),
data.username,
);
console.log(addComment);