summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/UserMutingService.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-06-05 14:28:19 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-06-09 11:02:36 -0400
commit207abaff889291b3878984f81cfe37e9fc465133 (patch)
tree1e98e9737cc9865956d1bf8bf04639c9672f5f96 /packages/backend/src/core/UserMutingService.ts
parentconvert many RedisKVCaches to QuantumKVCache or MemoryKVCache (diff)
downloadsharkey-207abaff889291b3878984f81cfe37e9fc465133.tar.gz
sharkey-207abaff889291b3878984f81cfe37e9fc465133.tar.bz2
sharkey-207abaff889291b3878984f81cfe37e9fc465133.zip
implement QuantumKVCache.setMany and QuantumKVCache.seleteMany
Diffstat (limited to 'packages/backend/src/core/UserMutingService.ts')
-rw-r--r--packages/backend/src/core/UserMutingService.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/backend/src/core/UserMutingService.ts b/packages/backend/src/core/UserMutingService.ts
index 4f72c1863b..c15a979d0f 100644
--- a/packages/backend/src/core/UserMutingService.ts
+++ b/packages/backend/src/core/UserMutingService.ts
@@ -43,8 +43,6 @@ export class UserMutingService {
id: In(mutings.map(m => m.id)),
});
- await Promise.all(Array
- .from(new Set(mutings.map(m => m.muterId)))
- .map(muterId => this.cacheService.userMutingsCache.delete(muterId)));
+ await this.cacheService.userMutingsCache.deleteMany(mutings.map(m => m.muterId));
}
}