When re-evaluating an existing list decrement count by removals (#609)

This commit is contained in:
Chris Anderson 2025-01-14 08:33:15 -06:00 committed by GitHub
parent 3467d90c17
commit 617da44916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -416,6 +416,7 @@ export const refreshList = async (list: List, types: DateRuleTypes) => {
const userChunker = new Chunker<number>(async userIds => {
await UserList.delete(qb => qb.whereIn('user_id', userIds)
.where('list_id', list.id))
await cacheDecr(App.main.redis, CacheKeys.memberCount(list), userIds.length)
}, 50)
await scrollUserListForEvaluation({