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 const newLog = await db
.insert(scanLog) .insert(scanLog)
.values({ .values({
scannerId: body.scannerId, scannerId: body.scannerId ?? "",
message: body.message, message: body.message ?? "",
prompt: body.prompt, prompt: body.prompt ?? "",
commandDescription: body.commandDescription, commandDescription: body.commandDescription ?? "",
status: body.status, status: body.status ?? "",
lines: body.lines, lines: body.lines ?? "",
user: body.user, user: body.user ?? "",
runningNumber: body.runningNumber, runningNumber: body.runningNumber ?? "",
}) })
.returning(); .returning();