update membership
This commit is contained in:
@@ -27,7 +27,7 @@ class Customer < ApplicationRecord
|
||||
'Content-Type' => 'application/json',
|
||||
'Accept' => 'application/json'
|
||||
},
|
||||
:timeout => 100
|
||||
:timeout => 10
|
||||
)
|
||||
rescue HTTParty::Error
|
||||
response = {status: false, message: "Server Error"}
|
||||
@@ -113,13 +113,11 @@ class Customer < ApplicationRecord
|
||||
response = { status: false}
|
||||
end
|
||||
|
||||
puts response.to_json
|
||||
|
||||
if response["status"] == true
|
||||
if response["status"] == true
|
||||
status = customer.update_attributes(membership_id: response["customer_datas"]["id"])
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def self.search(search)
|
||||
|
||||
Reference in New Issue
Block a user