File tree Expand file tree Collapse file tree 4 files changed +0
-22
lines changed Expand file tree Collapse file tree 4 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ class Authorization < Endpoint
106
106
get '/handshake/?:provider?' do
107
107
method = org? ? :handshake : :vcs_handshake
108
108
params [ :provider ] ||= 'github'
109
-
110
109
send ( method ) do |user , token , redirect_uri |
111
110
if target_ok? redirect_uri
112
111
content_type :html
@@ -178,7 +177,6 @@ def handshake
178
177
token = generate_token ( user : user , app_id : 0 )
179
178
payload = params [ :state ] . split ( ":::" , 2 ) [ 1 ]
180
179
update_first_login ( user )
181
- user . create_initial_subscription
182
180
yield serialize_user ( user ) , token , payload
183
181
else
184
182
values [ :state ] = create_state
@@ -213,7 +211,6 @@ def vcs_handshake
213
211
214
212
user = User . find ( vcs_data [ 'user' ] [ 'id' ] )
215
213
update_first_login ( user )
216
- user . create_initial_subscription
217
214
yield serialize_user ( user ) , vcs_data [ 'token' ] , payload ( params [ :provider ] )
218
215
else
219
216
state = vcs_create_state ( params [ :origin ] || params [ :redirect_uri ] )
Original file line number Diff line number Diff line change @@ -100,11 +100,6 @@ def create_subscription(subscription_data)
100
100
handle_subscription_response ( response )
101
101
end
102
102
103
- def create_initial_v2_subscription
104
- response = connection . post ( '/v2/initial_subscription' )
105
- handle_v2_subscription_response ( response )
106
- end
107
-
108
103
def create_v2_subscription ( subscription_data )
109
104
response = connection . post ( '/v2/subscriptions' , subscription_data )
110
105
handle_v2_subscription_response ( response )
Original file line number Diff line number Diff line change @@ -82,12 +82,5 @@ def installation
82
82
def github?
83
83
vcs_type == 'GithubUser'
84
84
end
85
-
86
- def create_initial_subscription
87
- return if Travis . config . org?
88
-
89
- client = BillingClient . new ( id )
90
- client . create_initial_v2_subscription
91
- end
92
85
end
93
86
end
Original file line number Diff line number Diff line change @@ -170,13 +170,6 @@ def github?
170
170
vcs_type == 'GithubUser'
171
171
end
172
172
173
- def create_initial_subscription
174
- return if Travis . config . org?
175
-
176
- client = Travis ::API ::V3 ::BillingClient . new ( id )
177
- client . create_initial_v2_subscription
178
- end
179
-
180
173
protected
181
174
182
175
def track_previous_changes
You can’t perform that action at this time.
0 commit comments