From 32bcf7ecbf4ecd1e7facf5c5437f8a7da17a335c Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 2 Dec 2021 21:31:20 +0100 Subject: [PATCH] fix(backend): Fix changing service type between backup and normal --- backend/flaschengeist_events/event_controller.py | 1 + package.json | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/flaschengeist_events/event_controller.py b/backend/flaschengeist_events/event_controller.py index 4ee543e..383bf59 100644 --- a/backend/flaschengeist_events/event_controller.py +++ b/backend/flaschengeist_events/event_controller.py @@ -299,6 +299,7 @@ def assign_job(job: Job, user, value, is_backup=False): service = Service.query.get((job.id, user.id_)) if service: service.value = value + service.is_backup = is_backup else: job.services.append(Service(user_=user, value=value, is_backup=is_backup, job_=job)) db.session.commit() diff --git a/package.json b/package.json index d4371e9..3a6bc5f 100644 --- a/package.json +++ b/package.json @@ -22,12 +22,12 @@ "@quasar/quasar-ui-qcalendar": "^4.0.0-beta.10" }, "devDependencies": { - "@flaschengeist/api": "^1.0.0-alpha.5", - "@flaschengeist/types": "^1.0.0-alpha.8", + "@flaschengeist/api": "^1.0.0-alpha.6", + "@flaschengeist/types": "^1.0.0-alpha.9", "@quasar/app": "^3.2.3", "quasar": "^2.3.3", "axios": "^0.24.0", - "prettier": "^2.4.1", + "prettier": "^2.5.0", "typescript": "^4.5.2", "pinia": "^2.0.4", "@typescript-eslint/eslint-plugin": "^5.4.0", @@ -37,8 +37,8 @@ "eslint-plugin-vue": "^8.1.1" }, "peerDependencies": { - "@flaschengeist/api": "^1.0.0-alpha.4", - "@flaschengeist/users": "^1.0.0-alpha.1" + "@flaschengeist/api": "^1.0.0-alpha.6", + "@flaschengeist/users": "^1.0.0-alpha.2" }, "prettier": { "singleQuote": true,