@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user