Reset the user's cached sticker packs when they (de)select packs

Otherwise we'll display stale packs and the user won't see updates. Part of #156
This commit is contained in:
Travis Ralston 2018-05-13 22:35:54 -06:00
parent 6c4e8f75d4
commit 8fa56de2bb

View File

@ -114,6 +114,8 @@ export class DimensionStickerService {
userPack.isSelected = request.isSelected;
await userPack.save();
Cache.for(CACHE_STICKERS).del("packs_" + userId);
return {}; // 200 OK
}