home: recent-scans list (links + tag ids); admin tags: item_type column, searchable tag code/description/owner; admin photo upload: drop imageEditor (unbundled JS); owner edit photo upload confirmed
This commit is contained in:
@@ -81,6 +81,14 @@ WHERE fingerprint = $1 AND id <> $2 AND scanned_at > now() - interval '24 hours'
|
||||
ORDER BY scanned_at DESC
|
||||
LIMIT 1;
|
||||
|
||||
-- name: ListRecentScansWithTag :many
|
||||
SELECT s.id, s.tag_id, s.scanned_at, s.lat, s.lng, s.location_shared, s.alert_sent,
|
||||
t.tag_code, t.description, t.item_type
|
||||
FROM scans s
|
||||
JOIN tags t ON t.id = s.tag_id
|
||||
ORDER BY s.scanned_at DESC
|
||||
LIMIT $1;
|
||||
|
||||
-- name: GetOrderByID :one
|
||||
SELECT * FROM orders WHERE id = $1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user