From cc0ffce892e053c57d039fa41031feebeb44ce5d Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 4 Jan 2020 15:29:18 -0500 Subject: [PATCH] Oauth2 Upgrade --- app/models/qbo_purchase.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/qbo_purchase.rb b/app/models/qbo_purchase.rb index 0ac5420..8593cb0 100644 --- a/app/models/qbo_purchase.rb +++ b/app/models/qbo_purchase.rb @@ -1,6 +1,6 @@ #The MIT License (MIT) # -#Copyright (c) 2017 rick barrette +#Copyright (c) 2020 rick barrette # #Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: # @@ -20,11 +20,11 @@ class QboPurchase < ActiveRecord::Base end def get_purchase(id) - get_base.service.find_by_id(id) + get_base.find_by_id(id) end def self.sync - QboPurchase.get_base.service.all.each { |purchase| + QboPurchase.get_base.all.each { |purchase| purchase.line_items.all? { |line_item|