DEV: Approved Post Webhook Event Category Update (#28725)

'Post approved by category experts' is moved to the post category
This commit is contained in:
Guhyoun Nam 2024-09-04 13:58:17 +09:00 committed by GitHub
parent 4f21a93a79
commit 93564bfa7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 3 additions and 3 deletions

View File

@ -40,6 +40,7 @@ class WebHook < ActiveRecord::Base
WebHookEventType::TYPES[:post_edited],
WebHookEventType::TYPES[:post_destroyed],
WebHookEventType::TYPES[:post_recovered],
WebHookEventType::TYPES[:category_experts_approved],
],
)
end

View File

@ -17,7 +17,6 @@ class WebHookEventType < ActiveRecord::Base
USER_PROMOTED = 16
TOPIC_VOTING = 17
CHAT_MESSAGE = 18
CATEGORY_EXPERTS = 19
enum group: {
topic: 0,
@ -36,7 +35,6 @@ class WebHookEventType < ActiveRecord::Base
user_promoted: 13,
voting: 14,
chat: 15,
category_experts: 16,
},
_scopes: false

View File

@ -5409,6 +5409,7 @@ en:
post_edited: "Post is updated"
post_destroyed: "Post is deleted"
post_recovered: "Post is recovered"
category_experts_approved: "Post is approved by category experts"
group_event:
group_name: "Group Events"
group_created: "Group is created"

View File

@ -233,5 +233,5 @@ end
WebHookEventType.seed do |b|
b.id = WebHookEventType::TYPES[:category_experts_approved]
b.name = "category_experts_approved"
b.group = WebHookEventType.groups[:category_experts]
b.group = WebHookEventType.groups[:post]
end