Skip to content

Commit

Permalink
Merge pull request #2093 from NCCE/2796/typo-in-error-handling-code
Browse files Browse the repository at this point in the history
Fixing typo in error handling code
  • Loading branch information
msquance-stem authored Jul 19, 2024
2 parents 33cf776 + 7412b2d commit 30a3223
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ def perform(user)
achievement.complete!
any_marked_as_attended = true
rescue Statesman::TransitionConflictError => e
Sentry.set_tags(achievement_id: achievement.id, user_id: user_id)
Sentry.set_tags(achievement_id: achievement.id, user_id: user.id)
Sentry.capture_exception(e)
end
when "cancelled"
begin
achievement.drop!
rescue Statesman::TransitionConflictError => e
Sentry.set_tags(achievement_id: achievement.id, user_id: user_id)
Sentry.set_tags(achievement_id: achievement.id, user_id: user.id)
Sentry.capture_exception(e)
end
end
Expand Down

0 comments on commit 30a3223

Please sign in to comment.