diff --git a/ee/app/workers/update_max_seats_used_for_gitlab_com_subscriptions_worker.rb b/ee/app/workers/update_max_seats_used_for_gitlab_com_subscriptions_worker.rb index 598b56558547e44a04306fc4a7954a3c69cf25ab..41d022829f57bbb0620ccc2e7c53b43be6c7b8c7 100644 --- a/ee/app/workers/update_max_seats_used_for_gitlab_com_subscriptions_worker.rb +++ b/ee/app/workers/update_max_seats_used_for_gitlab_com_subscriptions_worker.rb @@ -33,7 +33,7 @@ def perform subscription.max_seats_used, subscription.seats_in_use, subscription.seats_owed, - max_seat_used_changed_at.present? ? "timestamp '#{max_seat_used_changed_at}'" : '(select null::timestamp)' + max_seat_used_changed_at.present? ? "timestamp '#{max_seat_used_changed_at}'" : 'NULL::timestamp' ] rescue ActiveRecord::QueryCanceled => e track_error(e, subscription)