1 parent 6456055 commit 1a6b1feCopy full SHA for 1a6b1fe
1 file changed
src/commands/unblock.ts
@@ -21,18 +21,17 @@ export default async function (msg: Message) {
21
22
const lids = msg.mentionedIds.map((id) => id.split("@")[0]);
23
24
- await prisma.block.deleteMany({
25
- where: { lid: { in: lids } },
26
- });
27
-
28
- await Promise.all(
29
- msg.mentionedIds.map((lid) =>
+ await Promise.all([
+ prisma.block.deleteMany({
+ where: { lid: { in: lids } },
+ }),
+ lids.map((lid) =>
30
redis.set(
31
`rate:${lid}`,
32
JSON.stringify({ timestamps: [], penaltyCount: 0, penaltyUntil: 0 }),
33
),
34
35
- );
+ ]);
36
37
await msg.react("✅");
38
}
0 commit comments