Skip to content

Commit

Permalink
Merge branch 'release/1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
dotFionn committed Apr 21, 2023
2 parents f283af3 + e6470e7 commit 0749216
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vacdm-backend",
"version": "1.0.0",
"version": "1.0.2",
"description": "",
"main": "app.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions backend/src/services/pilot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down

0 comments on commit 0749216

Please sign in to comment.