summaryrefslogtreecommitdiff
path: root/nodejs/lib
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nodejs/lib/api.js2
-rw-r--r--nodejs/lib/ships.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/nodejs/lib/api.js b/nodejs/lib/api.js
index b9f768f..ecb0282 100644
--- a/nodejs/lib/api.js
+++ b/nodejs/lib/api.js
@@ -10,7 +10,7 @@ let busy = false; // true if we are already sending api requests.
let backoffSeconds = 0;
let running = false;
// other module variables
-let headers = undefined; // a file scope variable so that we only evaluate these once.
+let headers = undefined; // a file scoped variable so that we only evaluate these once.
let queue = new PriorityQueue(); // a priority queue to hold api calls we want to send, allows for throttling.
// a single queue processor should be running at any time, otherwise there will be trouble!
diff --git a/nodejs/lib/ships.js b/nodejs/lib/ships.js
index eb59013..f6cb027 100644
--- a/nodejs/lib/ships.js
+++ b/nodejs/lib/ships.js
@@ -5,7 +5,7 @@ import * as systems from '../lib/systems.js';
export async function extract(ctx) {
const ship = dbShips.getShip(ctx.symbol);
- const asteroidFields = await systems.type({symbol: ship.nav.systemSymbol, type: 'ASTEROID_FIELD'});
+ const asteroidFields = await systems.type({symbol: ship.nav.systemSymbol, type: 'ENGINEERED_ASTEROID'});
// TODO if there are multiple fields, find the closest one?
await navigate({symbol: ctx.symbol, waypoint: asteroidFields[0].symbol});
await orbit(ctx);