Skip to content

Commit

Permalink
kyc/quiz: fix tests (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-dionysos authored Jan 17, 2024
1 parent b359e0f commit dd80e90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kyc/quiz/quiz.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ func (r *repositoryImpl) validateKycStep(user *users.User) error {
func (*repositoryImpl) addFailedAttempt(ctx context.Context, userID UserID, now *time.Time, tx storage.Execer, skipped bool) error {
// $1: user_id.
// $2: now.
// $3: skipped.
const stmt = `
insert into failed_quiz_sessions (started_at, ended_at, questions, answers, language, user_id, skipped)
values ($2, $2, '{}', '{}', 'en', $1, $2)
values ($2, $2, '{}', '{}', 'en', $1, $3)
`
_, err := storage.Exec(ctx, tx, stmt, userID, now.Time, skipped)

Expand Down

0 comments on commit dd80e90

Please sign in to comment.