mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-30 02:32:29 +00:00
feat: notify on slack disconnect (#1323)
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
# reference_id :string
|
||||
#
|
||||
class Integrations::Hook < ApplicationRecord
|
||||
include Reauthorizable
|
||||
|
||||
validates :account_id, presence: true
|
||||
validates :app_id, presence: true
|
||||
|
||||
@@ -33,4 +35,8 @@ class Integrations::Hook < ApplicationRecord
|
||||
def slack?
|
||||
app_id == 'slack'
|
||||
end
|
||||
|
||||
def disable
|
||||
update(status: 'disabled')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user