fix: resolve Untitled QR issue and make destination links clickable in Admin modal
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ router.get('/users/:id/details', async (req, res) => {
|
||||
|
||||
// Fetch QR codes and scan counts
|
||||
const qrRes = await pgPool.query(`
|
||||
SELECT q.id, q.type, q.data_type, q.destination_url, q.short_url_id, q.created_at, q.design_data->>'name' as name,
|
||||
SELECT q.id, q.type, q.data_type, q.destination_url, q.short_url_id, q.created_at, q.name,
|
||||
(SELECT COUNT(*) FROM qr_scans s WHERE s.qr_code_id = q.id) as scan_count
|
||||
FROM qr_codes q
|
||||
WHERE q.user_id = $1
|
||||
|
||||
Reference in New Issue
Block a user