Skip to content
Snippets Groups Projects

BE: Allow customers to extend or reactivate their trial on gitlab.com [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Merged Qingyu Zhao requested to merge 290278-allow-extend-or-reactivate-trial-on-gitlab-com into master
All threads resolved!
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -54,9 +54,9 @@ def apply
@@ -54,9 +54,9 @@ def apply
def extend_reactivate
def extend_reactivate
render_404 unless Feature.enabled?(:allow_extend_reactivate_trial)
render_404 unless Feature.enabled?(:allow_extend_reactivate_trial)
@result = GitlabSubscriptions::ExtendReactivateTrialService.new.execute(extend_reactivate_trial_params) if valid_extension?
result = GitlabSubscriptions::ExtendReactivateTrialService.new.execute(extend_reactivate_trial_params) if valid_extension?
if @result&.dig(:success)
if result&.dig(:success)
head 200
head 200
else
else
render_403
render_403
Loading