Open sshaw opened 1 month ago
API request method calls do not modify the caller's references.
Bigcommerce::Request#raw_request calls params.delete(:connection) removing :connection from caller
Bigcommerce::Request#raw_request
params.delete(:connection)
:connection
options = { :page => page, :limit => 250, :connection => connection } customers = Bigcommerce::Customer.all(options) # process # get page 2 options[:page] = page + 1 # NoMethodError because :connection was remove by prior call customers = Bigcommerce::Customer.all(options)
Expected behavior
API request method calls do not modify the caller's references.
Actual behavior
Bigcommerce::Request#raw_request
callsparams.delete(:connection)
removing:connection
from callerSteps to reproduce behavior