From 2548205487569787dd14f899033839ef66d346d7 Mon Sep 17 00:00:00 2001 From: Developer <> Date: Thu, 11 Feb 2021 14:30:37 -0500 Subject: [PATCH] Updated ReportService to not create new reports if account is already suspended MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - ReportService to not create new reports if account is already suspended --- app/services/report_service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/report_service.rb b/app/services/report_service.rb index 68938d7a..f8893860 100644 --- a/app/services/report_service.rb +++ b/app/services/report_service.rb @@ -8,6 +8,8 @@ class ReportService < BaseService @comment = options.delete(:comment) || '' @options = options + return nil if @target_account.suspended_at != nil + create_report! @report