From 0fd2abbec38915d7c2858262d3821fe205c67c9c Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 4 Jan 2020 15:28:43 -0500 Subject: [PATCH] Oauth2 Upgrade --- app/models/qbo_item.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/qbo_item.rb b/app/models/qbo_item.rb index 347337b..cc8502e 100644 --- a/app/models/qbo_item.rb +++ b/app/models/qbo_item.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: # @@ -27,9 +27,9 @@ class QboItem < ActiveRecord::Base query << " AND Metadata.LastUpdatedTime >= '#{last.iso8601}' " if last if count == 0 - items = get_base.service.all + items = get_base.all else - items = get_base.service.query(query) + items = get_base.query(query) end unless items.count = 0