mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-28 11:46:02 +08:00
When re-evaluating an existing list decrement count by removals (#609)
This commit is contained in:
parent
3467d90c17
commit
617da44916
1 changed files with 1 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue