From d6a4e879e895bb71189d0f804bddf59bb196f6be Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Sat, 11 Jan 2025 11:56:09 -0600 Subject: [PATCH] When re-evaluating an existing list decrement count by removals --- apps/platform/src/lists/ListService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/platform/src/lists/ListService.ts b/apps/platform/src/lists/ListService.ts index 03436148..66a46ccd 100644 --- a/apps/platform/src/lists/ListService.ts +++ b/apps/platform/src/lists/ListService.ts @@ -416,6 +416,7 @@ export const refreshList = async (list: List, types: DateRuleTypes) => { const userChunker = new Chunker(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({