From 215b219a6d6e5e1d38ab1ffaa666ef8bc1bdf8be Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 4 Jan 2020 15:28:04 -0500 Subject: [PATCH] Oauth2 Upgrade --- app/models/qbo_employee.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/qbo_employee.rb b/app/models/qbo_employee.rb index 96054ff..df331e0 100644 --- a/app/models/qbo_employee.rb +++ b/app/models/qbo_employee.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: # @@ -19,7 +19,7 @@ class QboEmployee < ActiveRecord::Base end def self.sync - employees = get_base.service.all + employees = get_base.all transaction do # Update the item table @@ -33,7 +33,7 @@ class QboEmployee < ActiveRecord::Base end def self.sync_by_id(id) - employee = get_base.service.fetch_by_id(id) + employee = get_base.fetch_by_id(id) qbo_employee = find_or_create_by(id: employee.id) qbo_employee.name = employee.display_name qbo_employee.id = employee.id