Closed BattleSpunk closed 5 years ago
Hey, In your resolve function, if the ID is already in the resolvecache, it will break on a page refresh as it's not resolving the promise. if (this.resolveCache.has(id)) return this.resolveCache.get(id);
if (this.resolveCache.has(id)) return this.resolveCache.get(id);
Fixed in https://github.com/xDimGG/node-steamapi/commit/ed74b20c61030c17baff5ff5174d7e56070baf24, silly oversight on my end since I was only using await in my tests.
Hey, In your resolve function, if the ID is already in the resolvecache, it will break on a page refresh as it's not resolving the promise.
if (this.resolveCache.has(id)) return this.resolveCache.get(id);