From 80983662aaa4fcd1caf708ccef3d61737cb9f850 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Mon, 4 Aug 2025 16:14:07 +0000 Subject: [PATCH] Wait for promise to resolve before returning --- packages/ctl/src/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ctl/src/commands.ts b/packages/ctl/src/commands.ts index 3255b881..070e63f5 100644 --- a/packages/ctl/src/commands.ts +++ b/packages/ctl/src/commands.ts @@ -2062,7 +2062,7 @@ userCommands.add(new lib.Command({ exportType = "whitelist"; } - fs.writeJSON(args.filepath, await control.send( + await fs.writeJSON(args.filepath, await control.send( new lib.UserBulkExportRequest(exportType) ), { spaces: 2 }); print(`Exported ${exportType} to ${args.filepath}`);