From 38912cda4debd42429c6dde8b23b09d8f43bc98c Mon Sep 17 00:00:00 2001 From: ashwin1111 Date: Tue, 15 Oct 2024 15:58:54 +0530 Subject: [PATCH] fix: support marking an integration back as active (update / create bug) --- apps/integrations/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/integrations/serializers.py b/apps/integrations/serializers.py index 8d01e8c..1e24e2d 100644 --- a/apps/integrations/serializers.py +++ b/apps/integrations/serializers.py @@ -20,10 +20,10 @@ def create(self, validated_data): if validated_data['is_active']: integration, _ = Integration.objects.update_or_create( - is_active=True, org_id=validated_data['org_id'], type=validated_data['type'], defaults={ + 'is_active': True, 'org_name': validated_data['org_name'], 'tpa_id': validated_data['tpa_id'], 'tpa_name': validated_data['tpa_name']