Make sure to always update signatures regardless of % (update time)
This commit is contained in:
@@ -45,6 +45,10 @@ export const SystemView = () => {
|
||||
});
|
||||
console.log(`Updated signature ${signature.identifier}: ${existingScannedPercentage}% -> ${newScannedPercentage}%`);
|
||||
} else {
|
||||
const updatedSignature: Pick<Signature, 'updated'> = {
|
||||
updated: new Date().toISOString()
|
||||
}
|
||||
await pb.collection('signature').update(existingRecord.id, updatedSignature);
|
||||
console.log(`Skipped updating signature ${signature.identifier}: new scan ${newScannedPercentage}% is not better than existing ${existingScannedPercentage}%`);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user