Skip to content

Commit

Permalink
fix: support marking an integration back as active (update / create b…
Browse files Browse the repository at this point in the history
…ug) (#218)
  • Loading branch information
ashwin1111 authored Oct 15, 2024
1 parent 149d726 commit 7a1c7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/integrations/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 7a1c7d8

Please sign in to comment.