mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 18:25:03 +00:00
fix parentheses (almeida big stinky)
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
64a02c0eb2
commit
ab5dcdcbb4
1 changed files with 3 additions and 4 deletions
|
@ -37,10 +37,9 @@ export async function cleanMessages(
|
||||||
|
|
||||||
const chunks = chunkArray(idsToDelete, 100);
|
const chunks = chunkArray(idsToDelete, 100);
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
chunks.map((chunk) => Promise.all([
|
chunks.map((chunk) =>
|
||||||
channel.bulkDelete(chunk),
|
Promise.all([channel.bulkDelete(chunk), pluginData.state.savedMessages.markBulkAsDeleted(chunk)]),
|
||||||
pluginData.state.savedMessages.markBulkAsDeleted(chunk),
|
),
|
||||||
]),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// Create an archive
|
// Create an archive
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue