This commit is contained in:
+1
-1
@@ -227,7 +227,7 @@ const Hunts = {
|
|||||||
// Delete all scans for packages in this hunt
|
// Delete all scans for packages in this hunt
|
||||||
db.prepare('DELETE FROM scans WHERE package_id IN (SELECT id FROM packages WHERE hunt_id = ?)').run(id);
|
db.prepare('DELETE FROM scans WHERE package_id IN (SELECT id FROM packages WHERE hunt_id = ?)').run(id);
|
||||||
// Reset package scan counters and scanner references
|
// Reset package scan counters and scanner references
|
||||||
db.prepare('UPDATE packages SET scan_count = 0, first_scanned_by = NULL, last_scanned_by = NULL, hint_text = NULL, hint_image = NULL WHERE hunt_id = ?').run(id);
|
db.prepare('UPDATE packages SET scan_count = 0, first_scanned_by = NULL, first_scan_image = NULL, last_scanned_by = NULL, last_scan_hint = NULL WHERE hunt_id = ?').run(id);
|
||||||
});
|
});
|
||||||
doReset();
|
doReset();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user