small fix

This commit is contained in:
Harry Bomrah 2016-04-15 18:19:38 +08:00
parent cd2666dd74
commit 9a812b3c3f
1 changed files with 1 additions and 0 deletions

View File

@ -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