Skip to content

Commit 65812e9

Browse files
authored
Update repository.go
1 parent a4b236d commit 65812e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vmdb-api/repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (r *Repository) listUnscoredAnswersFor(ctx context.Context, problemID uuid.
8484
result := []Answer{}
8585
err := r.db.NewSelect().ColumnExpr("answers.*").
8686
Table("answers").
87-
Join("INNER JOIN scores").JoinOn("answers.id = scores.answer_id").
87+
Join("LEFT JOIN scores").JoinOn("answers.id = scores.answer_id").
8888
Where("problem_id = ?", problemID).
8989
Where("point IS NULL").
9090
Scan(ctx, &result)

0 commit comments

Comments
 (0)