small fix
This commit is contained in:
parent
cd2666dd74
commit
9a812b3c3f
|
@ -50,6 +50,7 @@ class Admin::RegisterApiController < ApplicationController
|
||||||
site = RegisteredSite.find_by(:uid => site_token) rescue nil
|
site = RegisteredSite.find_by(:uid => site_token) rescue nil
|
||||||
if !site.nil?
|
if !site.nil?
|
||||||
site.site_domain = params[:site_domain]
|
site.site_domain = params[:site_domain]
|
||||||
|
site.save
|
||||||
render :json => {"success" => true}.to_json
|
render :json => {"success" => true}.to_json
|
||||||
else
|
else
|
||||||
render :json => {"success" => false}.to_json
|
render :json => {"success" => false}.to_json
|
||||||
|
|
Loading…
Reference in New Issue