Skip to content

Commit

Permalink
Fix: Notifying Discord when a flag is created. (#4019)
Browse files Browse the repository at this point in the history
Because:
* The flags controller was refactored with our move to project
submissions v2, but we forgot to switch the flag used with the discord
notifier method to an instance variable.
  • Loading branch information
KevinMulhern authored Jul 24, 2023
1 parent c58b168 commit 93791d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/project_submissions/flags_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def notify_discord_admins
return unless Rails.env.production?

DiscordNotifier.notify(
Notifications::FlagSubmission.new(flag)
Notifications::FlagSubmission.new(@flag)
)
end
end

0 comments on commit 93791d8

Please sign in to comment.