fix(rfid): corrections to the manual tag to no fail on manual when a tag already exists but failed

This commit is contained in:
2025-07-15 08:19:36 -05:00
parent 49fd9d65c9
commit 33295dc3c3

View File

@@ -32,6 +32,13 @@ export const manualTag = async (
runningNumber: runningNr ? runningNr : rfidTags.runningNumber,
counts: rfidTags.counts,
lastareaIn: rfidTags.lastareaIn,
})
.onConflictDoUpdate({
target: rfidTags.tagHex,
set: {
lastRead: new Date(Date.now()),
lastareaIn: area,
},
});
createLog(
"info",