mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
Wait for promise to resolve before returning
This commit is contained in:
1 parent
9840f22688
commit
80983662aa
1 file changed
+1
-1
@@ -2062,7 +2062,7 @@ userCommands.add(new lib.Command({
|
|||||||
exportType = "whitelist";
|
exportType = "whitelist";
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.writeJSON(args.filepath, await control.send(
|
await fs.writeJSON(args.filepath, await control.send(
|
||||||
new lib.UserBulkExportRequest(exportType)
|
new lib.UserBulkExportRequest(exportType)
|
||||||
), { spaces: 2 });
|
), { spaces: 2 });
|
||||||
print(`Exported ${exportType} to ${args.filepath}`);
|
print(`Exported ${exportType} to ${args.filepath}`);
|
||||||
|
|||||||
Reference in new issue
Block a user