fix(scanner): changed to not crash on logging

cloases #19
This commit is contained in:
2026-05-11 13:35:07 -05:00
parent 7c31b43a4a
commit 0de2579942

View File

@@ -12,14 +12,14 @@ router.post("/", async (req, res) => {
const newLog = await db
.insert(scanLog)
.values({
scannerId: body.scannerId,
message: body.message,
prompt: body.prompt,
commandDescription: body.commandDescription,
status: body.status,
lines: body.lines,
user: body.user,
runningNumber: body.runningNumber,
scannerId: body.scannerId ?? "",
message: body.message ?? "",
prompt: body.prompt ?? "",
commandDescription: body.commandDescription ?? "",
status: body.status ?? "",
lines: body.lines ?? "",
user: body.user ?? "",
runningNumber: body.runningNumber ?? "",
})
.returning();