From 90665c3bce7c8906a2ec6c4f9e4004012e167b7b Mon Sep 17 00:00:00 2001 From: Nick Visutsithiwong <2823112+nickvisut@users.noreply.github.com> Date: Sun, 22 Dec 2024 17:44:07 -0800 Subject: [PATCH] WIP fix getBenchmark query --- src/backend/routers/iep.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/backend/routers/iep.ts b/src/backend/routers/iep.ts index f02ef778..29ab56ed 100644 --- a/src/backend/routers/iep.ts +++ b/src/backend/routers/iep.ts @@ -366,10 +366,8 @@ export const iep = router({ // NOTE: existing code const result = await req.ctx.db .selectFrom("benchmark") - .where("benchmark.benchmark_id", "=", benchmark_id) .innerJoin("task", "benchmark.benchmark_id", "task.benchmark_id") .innerJoin("user", "task.assignee_id", "user.user_id") - .where("task.assignee_id", "=", "user.user_id") .where("benchmark.benchmark_id", "=", benchmark_id) .select((eb) => [ "benchmark.description",