forked from saurabh/orbit4-5
Merge branch 'development' of gitlab.tp.rulingcom.com:saurabh/orbit4-5
This commit is contained in:
commit
9be7e13774
|
@ -2,10 +2,10 @@ namespace :register_with_store do
|
|||
task :register,[:arg] => :environment do |task,args|
|
||||
modules = ModuleApp.all
|
||||
ids = modules.collect{|ma| ma.key}
|
||||
store_token = Site.first.store_token
|
||||
store_token = Site.first.store_token rescue nil
|
||||
if !store_token.nil?
|
||||
module_apps = ModuleApp.all
|
||||
exceptions = OrbitStore::MODULE_EXCEPTIONS
|
||||
if !store_token.nil?
|
||||
params_to_send = {'store_token' => store_token, "apps" => ids}
|
||||
uri = URI.parse(OrbitStore::URL)
|
||||
http = Net::HTTP.new(uri.host,uri.port)
|
||||
|
|
Loading…
Reference in New Issue