zuora_connect 2.0.5o → 2.0.5p
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/zuora_connect/controllers/helpers.rb +3 -3
- data/lib/zuora_connect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fcd3261006fd6d36a06fe1528c53dc1eaeff482589943f82931f660a188bc59
|
4
|
+
data.tar.gz: 877292f064f221c3c779e262050d3c77fcaa64f59d944a247e13aa68ac9218ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acc1460b1ff720d381660f4447a6931dfeead161e2b48005732b64b2422dd226926196f72ff226aa1c2d69852f8b2a59ae4df00538b32942893497309d7186f1
|
7
|
+
data.tar.gz: 54b3ee18a7bc3f1f9f2f4fb3c27415a65b51b49c4cf908c98a2f56e85b04fdc03142f9364f8ee3030df50e474aadd8658654613e4d53c24779ab5257da391487
|
@@ -196,13 +196,14 @@ module ZuoraConnect
|
|
196
196
|
}
|
197
197
|
return
|
198
198
|
end
|
199
|
-
|
199
|
+
|
200
200
|
ActiveRecord::Base.transaction do
|
201
201
|
ActiveRecord::Base.connection.execute('LOCK public.zuora_users IN ACCESS EXCLUSIVE MODE')
|
202
|
+
next_id = (ZuoraConnect::AppInstance.all.where(:access_token => nil).order(id: :desc).limit(1).pluck(:id).first || 24999999) + 1
|
202
203
|
|
203
204
|
appinstances = ZuoraConnect::AppInstance.where("zuora_entity_ids ?& array[:entities] = true AND zuora_domain = :host", entities: [zuora_entity_id], host: zuora_client.rest_domain).pluck(:id, :name)
|
204
205
|
if appinstances.size > 0
|
205
|
-
ZuoraConnect.logger.warn("Double tenant create for '#{zuora_client.rest_domain}' - 'zuora_entity_id'")
|
206
|
+
ZuoraConnect.logger.warn("Double tenant create for '#{zuora_client.rest_domain}' - '#{zuora_entity_id}'")
|
206
207
|
redirect_to "https://#{zuora_host}/apps/newlogin.do?retURL=#{CGI.escape(request.fullpath)}"
|
207
208
|
return
|
208
209
|
end
|
@@ -228,7 +229,6 @@ module ZuoraConnect
|
|
228
229
|
end
|
229
230
|
|
230
231
|
Apartment::Tenant.switch!("public")
|
231
|
-
next_id = (ZuoraConnect::AppInstance.all.where(:access_token => nil).order(id: :desc).limit(1).pluck(:id).first || 24999999) + 1
|
232
232
|
begin
|
233
233
|
Apartment::Tenant.create(next_id.to_s)
|
234
234
|
rescue Apartment::TenantExists => ex
|