Skip to content

Commit

Permalink
Merge pull request #840 from rage/give-max-point-fix
Browse files Browse the repository at this point in the history
Give max point when tries run out - fix
  • Loading branch information
d471061c committed Feb 15, 2022
2 parents 4ae1011 + 5cf813e commit 6c992c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/backendv2/src/models/quiz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class Quiz extends BaseModel {
body!: string
submitMessage!: string
checkPlagiarism!: boolean
give_max_points_when_tries_run_out!: boolean
giveMaxPointsWhenTriesRunOut!: boolean

static get tableName() {
return "quiz"
Expand Down
2 changes: 1 addition & 1 deletion packages/backendv2/src/models/quiz_answer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ class QuizAnswer extends mixin(BaseModel, [
userQuizState.status = "open"
} else {
userQuizState.status = "locked"
if (quiz.give_max_points_when_tries_run_out) {
if (quiz.giveMaxPointsWhenTriesRunOut) {
userQuizState.pointsAwarded = quiz.points
}
}
Expand Down

0 comments on commit 6c992c3

Please sign in to comment.