3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 10:25:01 +00:00

fix parentheses (almeida big stinky)

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
metal 2023-03-10 21:12:56 +00:00 committed by GitHub
parent 64a02c0eb2
commit ab5dcdcbb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,10 +37,9 @@ export async function cleanMessages(
const chunks = chunkArray(idsToDelete, 100);
await Promise.all(
chunks.map((chunk) => Promise.all([
channel.bulkDelete(chunk),
pluginData.state.savedMessages.markBulkAsDeleted(chunk),
]),
chunks.map((chunk) =>
Promise.all([channel.bulkDelete(chunk), pluginData.state.savedMessages.markBulkAsDeleted(chunk)]),
),
);
// Create an archive