fix error
This commit is contained in:
parent
6598636124
commit
039b3cd591
|
@ -29,6 +29,7 @@ class Admin::RegisterApiController < ApplicationController
|
|||
response["error"] = "SITE_ALREADY_REGISTERED"
|
||||
end
|
||||
if !site.nil?
|
||||
send_confirmation_email(site.admin_email, site.confirmation_token, site.site_token)
|
||||
p1 = fork {register_client_site(site,site.site_token) }
|
||||
Process.detach(p1)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue