updates to most features
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 28s

This commit is contained in:
2026-02-28 00:24:08 -05:00
parent 4255d95c68
commit 30f0c98102
10 changed files with 253 additions and 97 deletions

View File

@@ -141,6 +141,15 @@ const Packages = {
`).get(shortName, uniqueCode);
},
findByHuntAndCardNumber(shortName, cardNumber) {
return db.prepare(`
SELECT p.*, h.name as hunt_name, h.short_name as hunt_short_name, h.id as hunt_id, h.expiry_date, h.package_count
FROM packages p
JOIN hunts h ON p.hunt_id = h.id
WHERE h.short_name = ? COLLATE NOCASE AND p.card_number = ?
`).get(shortName, parseInt(cardNumber, 10));
},
getByHunt(huntId) {
return db.prepare(`
SELECT p.*,