add webhook event preferences

This commit is contained in:
Pete Matsyburka
2024-04-09 18:11:58 +03:00
parent 0c690b3033
commit 6788071eec
12 changed files with 130 additions and 12 deletions
@@ -50,6 +50,8 @@ class SubmissionsController < ApplicationController
def destroy
@submission.update!(archived_at: Time.current)
SendSubmissionArchivedWebhookRequestJob.perform_later(@submission)
redirect_back(fallback_location: template_path(@submission.template), notice: 'Submission has been archived')
end