Updated ReportService to not create new reports if account is already suspended
• Updated: - ReportService to not create new reports if account is already suspended
This commit is contained in:
@@ -8,6 +8,8 @@ class ReportService < BaseService
|
|||||||
@comment = options.delete(:comment) || ''
|
@comment = options.delete(:comment) || ''
|
||||||
@options = options
|
@options = options
|
||||||
|
|
||||||
|
return nil if @target_account.suspended_at != nil
|
||||||
|
|
||||||
create_report!
|
create_report!
|
||||||
|
|
||||||
@report
|
@report
|
||||||
|
|||||||
Reference in New Issue
Block a user