lib/trav3.rb in trav3-0.4.0 vs lib/trav3.rb in trav3-0.4.1
- old
+ new
@@ -2822,10 +2822,10 @@
def user(user_id = nil, sync = false)
return get("#{without_repo}/user") if !user_id && !sync
validate_number user_id
- sync and return get("#{without_repo}/user/#{user_id}/sync")
+ sync and return post("#{without_repo}/user/#{user_id}/sync")
get("#{without_repo}/user/#{user_id}")
end
private # @private