diff --git a/libs/common/src/platform/services/cryptography/encrypt.service.implementation.ts b/libs/common/src/platform/services/cryptography/encrypt.service.implementation.ts index b61f44fa3c..4829c297f0 100644 --- a/libs/common/src/platform/services/cryptography/encrypt.service.implementation.ts +++ b/libs/common/src/platform/services/cryptography/encrypt.service.implementation.ts @@ -155,7 +155,12 @@ export class EncryptServiceImplementation implements EncryptService { return []; } - return await Promise.all(items.map((item) => item.decrypt(key))); + // don't use promise.all because this task is not io bound + let results = []; + for (let i = 0; i < items.length; i++) { + results.push(await items[i].decrypt(key)); + } + return results; } async hash(value: string | Uint8Array, algorithm: "sha1" | "sha256" | "sha512"): Promise {