In v1.0, shift codes are cached all together instead of with the account that redeemed them. This is a regression from v0.0.
When loading the code cache during redeem use the session account ID as a key when adding a cached code.
Something along these lines should do it:
constcache=awaitloadContents<CacheStore>(CACHE_FILE,{});if(!cache[acc.id]){cache[acc.id]=[];}
...
cache[acc.id].push(code);awaitstoreContents(CACHE_FILE,cache);Should we store cached codes in a different file instead of in the same?
In v1.0, shift codes are cached all together instead of with the account that redeemed them. This is a regression from v0.0.
When loading the code cache during redeem use the session account ID as a key when adding a cached code.
Something along these lines should do it:
Should we store cached codes in a different file instead of in the same?