updates to most features
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 28s
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 28s
This commit is contained in:
@@ -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.*,
|
||||
|
||||
Reference in New Issue
Block a user