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']