Skip to content

Commit fd32f11

Browse files
committed
create only one report
1 parent 20e11c8 commit fd32f11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/jobs/analyze_spam_job.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def perform(spammable)
88
thing_to_analyze = spammable['klass'].classify.constantize.find(spammable['id'])
99

1010
if thing_to_analyze.spam?
11-
thing_to_analyze.create_spam_report
11+
thing_to_analyze.create_spam_report unless thing_to_analyze.spam_report.present?
1212
end
1313
end
1414
end

0 commit comments

Comments
 (0)