You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is returning just five items like their own API with https://api.discogs.com/database/search?q=skrillex&type=label&token=[redacted]. However if I am using a Promise like
if(arguments.length<=2){if(typeofparams==='function'){callback=params;}// No extra search params, the callback is the second function param}else{obj=params;}
just be a simple && check
if(arguments.length<=2&&typeofparams==='function'){callback=params;// No extra search params, the callback is the second function param}else{obj=params;}
since the length is <= 2 but params is not a function, obj should just be set to params. I will create a pull request for you, just checking first that the logic is sound.
The text was updated successfully, but these errors were encountered:
Hey, great library. Nice with automatic rate limiting.
Database searching with Promise is not working for me however. For example
is returning just five items like their own API with
https://api.discogs.com/database/search?q=skrillex&type=label&token=[redacted]
. However if I am using a Promise likeI get 870 items with all sorts of different results. Basically everything with Skrillex I assume.
Should it instead of this
just be a simple
&&
checksince the length is
<= 2
but params is not a function,obj
should just be set toparams
. I will create a pull request for you, just checking first that the logic is sound.The text was updated successfully, but these errors were encountered: