From 9a812b3c3fbd668f8b77ae7dff8ac24293cd363c Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 15 Apr 2016 18:19:38 +0800 Subject: [PATCH] small fix --- app/controllers/admin/register_api_controller.rb | 1 + 1 file changed, 1 insertion(+) 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