Fix stops query: use status column not deleted_at
Deploy to route.crispygoat.com / deploy (push) Successful in 3m33s

stops table has no deleted_at column — soft delete is done via status='active'

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Tyler
2026-06-10 13:22:50 -06:00
parent eabc709076
commit 77fb8fe7ee
+1 -1
View File
@@ -48,7 +48,7 @@ export default async function AdminStopsPage() {
b.name as brand_name
FROM stops s
LEFT JOIN brands b ON b.id = s.brand_id
WHERE s.deleted_at IS NULL
WHERE s.status = 'active'
${brandFilter}
ORDER BY s.date ASC
`);