summaryrefslogtreecommitdiff
path: root/nodejs/automation/exploration.js
diff options
context:
space:
mode:
Diffstat (limited to 'nodejs/automation/exploration.js')
-rw-r--r--nodejs/automation/exploration.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/nodejs/automation/exploration.js b/nodejs/automation/exploration.js
deleted file mode 100644
index e4f24f1..0000000
--- a/nodejs/automation/exploration.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import db from '../database/db.js';
-import * as dbSystems from '../database/systems.js';
-import * as api from '../lib/api.js';
-
-export async function init() {
- const response = await api.send({endpoint: `/systems`, page: Math.max(1, Math.floor(dbSystems.getSystemsCount()/20)), priority: 100});
- if (response.error !== undefined) {
- throw response;
- }
- db.transaction(() => response.forEach(function(system) { try { dbSystems.addSystem(system); } catch {} }))();
-}