move customer func: from doemal

This commit is contained in:
phyusin
2018-05-11 13:45:04 +06:30
parent a76f9068da
commit baac2c33ea
3 changed files with 23 additions and 23 deletions

View File

@@ -22,7 +22,7 @@ class Api::OrderReserve::OrderReservationController < Api::ApiController
if !check_customer.nil?
customer_id = check_customer.customer_id
else
customer = Customer.addCustomer(params)
customer = OrderReservation.addCustomer(params)
customer_id = customer.id
end
render :json => { :status => true, :data => { :customer_id => customer_id} }