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
|
||||
if !site.nil?
|
||||
site.site_domain = params[:site_domain]
|
||||
site.save
|
||||
render :json => {"success" => true}.to_json
|
||||
else
|
||||
render :json => {"success" => false}.to_json
|
||||
|
|
Loading…
Reference in New Issue