Wait for promise to resolve before returning

This commit is contained in:
Danielv123 committed 2025-08-04 16:14:07 +00:00
1 parent 9840f22688
commit 80983662aa
1 file changed
+1 -1
+1 -1
View File
@@ -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}`);