diff --git a/src/models/index.js b/src/models/index.js index 0088b0f..bc1c084 100644 --- a/src/models/index.js +++ b/src/models/index.js @@ -571,7 +571,7 @@ const ComplaintReports = { FROM complaint_reports c JOIN packages p ON c.package_id = p.id LEFT JOIN users u ON c.reported_by_user_id = u.id - WHERE c.hunt_id = ? AND c.status = 'open' + WHERE c.hunt_id = ? ORDER BY c.created_at ASC `).all(huntId); }, @@ -585,7 +585,6 @@ const ComplaintReports = { JOIN packages p ON c.package_id = p.id JOIN hunts h ON c.hunt_id = h.id LEFT JOIN users u ON c.reported_by_user_id = u.id - WHERE c.status = 'open' ORDER BY c.created_at ASC `).all(); },