summaryrefslogtreecommitdiff
path: root/lib/quality/seeders/issues.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/quality/seeders/issues.rb')
-rw-r--r--lib/quality/seeders/issues.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/quality/seeders/issues.rb b/lib/quality/seeders/issues.rb
index 5d345dd30a1..bf42913e043 100644
--- a/lib/quality/seeders/issues.rb
+++ b/lib/quality/seeders/issues.rb
@@ -31,9 +31,9 @@ module Quality
}
params[:closed_at] = params[:created_at] + rand(35).days if params[:state] == 'closed'
- issue = ::Issues::CreateService.new(project: project, current_user: team.sample, params: params, spam_params: nil).execute_without_rate_limiting
+ create_result = ::Issues::CreateService.new(project: project, current_user: team.sample, params: params, spam_params: nil).execute_without_rate_limiting
- if issue.persisted?
+ if create_result.success?
created_issues_count += 1
print '.' # rubocop:disable Rails/Output
end