Commit d48de25d authored by Kerri Miller's avatar Kerri Miller

Merge branch '243496-clean-up-unreachable-code-after-tighten-db-constraint' into 'master'

Clean up unreachable code after tighten DB contraint

See merge request gitlab-org/gitlab!56920
parents 5b014d43 af31f711
......@@ -16,14 +16,6 @@ class UpdateMaxSeatsUsedForGitlabComSubscriptionsWorker # rubocop:disable Scalab
tuples = []
subscriptions.each do |subscription|
# This should be removed after https://gitlab.com/gitlab-org/gitlab/-/issues/243496
# Because there should not be any NULL namespace_id gitlab_subscription after the merge
# request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40537
unless subscription.namespace
track_error(subscription)
next
end
subscription.refresh_seat_attributes!
tuples << [subscription.id, subscription.max_seats_used, subscription.seats_in_use, subscription.seats_owed]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment