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/ships.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ships.js') diff --git a/lib/ships.js b/lib/ships.js index 23f272d..c1bba08 100644 --- a/lib/ships.js +++ b/lib/ships.js @@ -61,6 +61,8 @@ export async function navigate(ctx) { dbShips.setShipNav(ctx.symbol, response.data.nav); const delay = new Date(response.data.nav.route.arrival) - new Date(); await api.sleep(delay); + response.data.nav.status = 'IN_ORBIT'; + dbShips.setShipNav(ctx.symbol, response.data.nav); return response; } -- cgit v1.2.3