fix error

This commit is contained in:
邱博亞 2022-03-08 16:08:40 +08:00
parent 6598636124
commit 039b3cd591
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class Admin::RegisterApiController < ApplicationController
response["error"] = "SITE_ALREADY_REGISTERED" response["error"] = "SITE_ALREADY_REGISTERED"
end end
if !site.nil? if !site.nil?
send_confirmation_email(site.admin_email, site.confirmation_token, site.site_token)
p1 = fork {register_client_site(site,site.site_token) } p1 = fork {register_client_site(site,site.site_token) }
Process.detach(p1) Process.detach(p1)
end end