Merge pull request 'webhook自定义事件' (#43) from feature_custom_webhook into develop

This commit is contained in:
2023-04-14 11:39:47 +08:00
28 changed files with 700 additions and 55 deletions

View File

@@ -27,6 +27,7 @@ class Api::V1::Issues::JournalsController < Api::V1::BaseController
end
def destroy
TouchWebhookJob.set(wait: 5.seconds).perform_later('IssueComment', @issue&.id, current_user.id, @journal.id, 'deleted', JSON.parse(@journal.to_builder.target!))
if @journal.destroy!
render_ok
else