From de73598d74e080bc8b41e573248deb49f82569e0 Mon Sep 17 00:00:00 2001 From: Nilesh Pant <58652823+NileshPant1999@users.noreply.github.com> Date: Thu, 18 May 2023 15:20:58 +0530 Subject: [PATCH] bug fix: take org id out of the dict (#66) --- apps/bamboohr/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/bamboohr/serializers.py b/apps/bamboohr/serializers.py index c3a9eb66..6df07835 100644 --- a/apps/bamboohr/serializers.py +++ b/apps/bamboohr/serializers.py @@ -49,9 +49,9 @@ def create(self, validated_data): } } configuration, _ = BambooHrConfiguration.objects.update_or_create( + org_id=org, + recipe_id=recipes[0]['id'], defaults={ - 'org_id':org, - 'recipe_id': recipes[0]['id'], 'recipe_status': True, 'recipe_data': recipes[0]['code'], 'additional_email_options': validated_data['additional_email_options'],