Skip to content
Snippets Groups Projects
Unverified Commit 8eb29741 authored by Alexander Ivanov's avatar Alexander Ivanov Committed by GitHub
Browse files

Add webhook `account.approved` (#22938)

* Webhook `account.approved` when preparing new user

* Update Webhook.EVENTS
parent 17f79082
No related branches found
No related tags found
No related merge requests found
......@@ -489,6 +489,7 @@ class User < ApplicationRecord
BootstrapTimelineWorker.perform_async(account_id)
ActivityTracker.increment('activity:accounts:local')
UserMailer.welcome(self).deliver_later
TriggerWebhookWorker.perform_async('account.approved', 'Account', account_id)
end
def prepare_returning_user!
......
......@@ -15,6 +15,7 @@
class Webhook < ApplicationRecord
EVENTS = %w(
account.approved
account.created
report.created
).freeze
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment