Skip to content

Commit

Permalink
Merge branch 'develop' into 'main'
Browse files Browse the repository at this point in the history
chore: Update ExcludeDomainSerializer

See merge request locker/api-core!462
  • Loading branch information
phuongntt-cystack committed Jun 20, 2024
2 parents 25acb85 + 390624f commit 72765b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locker_server/api/v1_0/exclude_domains/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def validate(self, data):
raise serializers.ValidationError(detail={'domain': [
'This domain or ip is invalid', 'Domain hoặc ip không hợp lệ'
]})
if is_domain:
data["domain"] = extract_root_domain(domain=domain)
# if is_domain:
# data["domain"] = extract_root_domain(domain=domain)
return data

def to_representation(self, instance):
Expand Down

0 comments on commit 72765b1

Please sign in to comment.