fix(rfid): corrections to the manual tag to no fail on manual when a tag already exists but failed
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user