diff --git a/src/syncMacros.ts b/src/syncMacros.ts index 534b3c9..69c9649 100644 --- a/src/syncMacros.ts +++ b/src/syncMacros.ts @@ -45,8 +45,7 @@ export async function syncMacros(hackmudPath: string) { } } - for (const user of users) - writeFile(resolvePath(hackmudPath, `${user}.macros`), macroFile) + await Promise.all(users.map(async user => writeFile(resolvePath(hackmudPath, `${user}.macros`), macroFile))) return { macrosSynced, usersSynced: users.length } }