diff --git a/app/controllers/admin/register_api_controller.rb b/app/controllers/admin/register_api_controller.rb index c95765d..74fcff6 100644 --- a/app/controllers/admin/register_api_controller.rb +++ b/app/controllers/admin/register_api_controller.rb @@ -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