Skip to content

Commit

Permalink
Show all completions from a course
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Jan 10, 2024
1 parent 2843945 commit 5de55f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion backend/api/routes/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export class CompletionController extends Controller {

const sql = knex
.select<any, Completion[]>("completion.*")
.distinctOn("completion.user_id", "completion.course_id")
.from("completion")
.fullOuterJoin(
"completion_registered",
Expand Down
1 change: 0 additions & 1 deletion backend/schema/User/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export const User = objectType({
where: {
course_id: course?.id ?? undefined,
},
distinct: ["user_id", "course_id"],
orderBy: { created_at: "asc" },
})
},
Expand Down

0 comments on commit 5de55f0

Please sign in to comment.