From a1d6b03ec98abbc073b5b73b631da6ea3eae4eb9 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 27 Mar 2024 15:20:14 +0100 Subject: [node] finished the great typescript rewrite --- nodejs/automation/exploration.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 nodejs/automation/exploration.js (limited to 'nodejs/automation/exploration.js') 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 {} }))(); -} -- cgit v1.2.3