From ab5dcdcbb48df1b303556f3be947ae62f6fa0547 Mon Sep 17 00:00:00 2001 From: metal Date: Fri, 10 Mar 2023 21:12:56 +0000 Subject: [PATCH] fix parentheses (almeida big stinky) Signed-off-by: GitHub --- backend/src/plugins/Utility/commands/CleanCmd.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/src/plugins/Utility/commands/CleanCmd.ts b/backend/src/plugins/Utility/commands/CleanCmd.ts index 870e85d4..66a44814 100644 --- a/backend/src/plugins/Utility/commands/CleanCmd.ts +++ b/backend/src/plugins/Utility/commands/CleanCmd.ts @@ -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