From 275dd982328cc7eb135e381dbb9b86a88716ff85 Mon Sep 17 00:00:00 2001 From: Moritz Date: Sat, 22 Apr 2023 00:03:11 +0200 Subject: [PATCH 1/2] fix tsat --- backend/src/services/pilot.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/services/pilot.service.ts b/backend/src/services/pilot.service.ts index 3a9032e..687afdc 100644 --- a/backend/src/services/pilot.service.ts +++ b/backend/src/services/pilot.service.ts @@ -100,6 +100,10 @@ export async function updatePilot( changesOps['vacdm.tobt_state'] = 'CONFIRMED'; } + if (new Date(changesOps['vacdm.tobt']) <= pilot.vacdm.tobt) { + changesOps['vacdm.tsat'] = timeUtils.emptyDate; + } + if (changes.vacdm?.tobt_state) { switch (changes.vacdm?.tobt_state) { case 'FLIGHTPLAN': { From e6470e74b6e390f37e46cb940aa5ef7cf1013c95 Mon Sep 17 00:00:00 2001 From: Fionn Date: Sat, 22 Apr 2023 00:14:01 +0200 Subject: [PATCH 2/2] bump version to 1.0.2 --- backend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 7b43d2a..a0e0ffd 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "vacdm-backend", - "version": "1.0.0", + "version": "1.0.2", "description": "", "main": "app.js", "scripts": {