From 458d08626f338c91a3bc14654bfeb9ca00c412cf Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 6 Jun 2023 23:45:25 +0200 Subject: Update ships status at the end of the nav cooldown --- lib/api.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/api.js') diff --git a/lib/api.js b/lib/api.js index 8ece296..d8010a9 100644 --- a/lib/api.js +++ b/lib/api.js @@ -65,6 +65,12 @@ function send_this(data) { .then(response => response.json()) .then(async response => { switch(response.error?.code) { + //case 401: // 401 means a server reset happened + // close database file + // rm database file + // logrotate + // spawnSync + // break; case 429: // 429 means rate limited, let's hold back for 10 seconds await sleep(10000); queue.enqueue(data, 1); -- cgit v1.2.3