admin roadmap filter & search, user management, reopen rejected, system health

This commit is contained in:
2026-05-18 19:45:14 +07:00
parent c52b12daad
commit 6e02f2f0d7
36 changed files with 2013 additions and 339 deletions
+5 -1
View File
@@ -45,7 +45,11 @@ export const tripRepo = {
async findOpen(filters?: TripFilters) {
const todayStart = utcStartOfDay(new Date());
const andParts: Prisma.TripWhereInput[] = [{ status: "OPEN" }];
const andParts: Prisma.TripWhereInput[] = [
{ status: "OPEN" },
// Sembunyikan trip dari organizer yang suspended — moderasi via panel admin.
{ organizer: { suspended: false } },
];
if (filters?.category) {
andParts.push({ category: filters.category });