fix: include emoji event stores in IndexedDB cleanup
The userEmojiListEvents and emojiSetEvents stores were not included in the cleanUp() method, causing their cached data to never expire. Add both stores with a 7-day expiration period. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6cca3969ce
commit
1c3d58f490
1 changed files with 8 additions and 0 deletions
|
|
@ -629,6 +629,14 @@ class IndexedDbService {
|
||||||
{
|
{
|
||||||
name: StoreNames.PIN_LIST_EVENTS,
|
name: StoreNames.PIN_LIST_EVENTS,
|
||||||
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 * 30 // 30 days
|
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 * 30 // 30 days
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: StoreNames.USER_EMOJI_LIST_EVENTS,
|
||||||
|
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 * 7 // 7 days
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: StoreNames.EMOJI_SET_EVENTS,
|
||||||
|
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 * 7 // 7 days
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const transaction = this.db!.transaction(
|
const transaction = this.db!.transaction(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue