mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
renameServer changes
* Update doc error, regenerate docs * Update a bad error message in renamePurchasedServer@serverPurchases.ts * restore true/false return (removed in #450 due to miscommunication)
This commit is contained in:
@@ -1270,7 +1270,13 @@ export const ns: InternalAPI<NSFull> = {
|
||||
renamePurchasedServer: (ctx) => (_hostname, _newName) => {
|
||||
const hostname = helpers.string(ctx, "hostname", _hostname);
|
||||
const newName = helpers.string(ctx, "newName", _newName);
|
||||
renamePurchasedServer(hostname, newName);
|
||||
try {
|
||||
renamePurchasedServer(hostname, newName);
|
||||
return true;
|
||||
} catch (err) {
|
||||
helpers.log(ctx, () => String(err));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
deleteServer: (ctx) => (_name) => {
|
||||
|
||||
Reference in New Issue
Block a user