use spread
This commit is contained in:
parent
938f55e679
commit
fecc028709
@ -92,7 +92,7 @@ export async function removeClientManager(accountId: string): Promise<void> {
|
||||
* @returns Promise that resolves when all cleanup is complete
|
||||
*/
|
||||
export async function removeAllClientManagers(): Promise<void> {
|
||||
const promises = Array.from(registry.keys()).map((accountId) => removeClientManager(accountId));
|
||||
const promises = [...registry.keys()].map((accountId) => removeClientManager(accountId));
|
||||
await Promise.all(promises);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user