christophergregory / shopify-node-api

OAuth2 Module for Shopify API
MIT License
216 stars 74 forks source link

Fix query #102

Closed BKnights closed 5 years ago

BKnights commented 5 years ago

Changes at line 292. rest is just odd whitespace differences.

Old code always adds a question mark to get requests but did not check for an existing question mark.

New code only adds if data is present and checks to see if the stringified data should be appended with a question mark or ampersand.