Fixed 500 error when adding domain without nodeinfo

This commit is contained in:
Eliot Berriot 2019-06-24 16:07:53 +02:00
parent aa368ec5eb
commit cbf9f74e49
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ class ManageDomainViewSet(
def perform_create(self, serializer):
domain = serializer.save()
federation_tasks.update_domain_nodeinfo(domain_name=domain.name)
federation_tasks.update_domain_nodeinfo.delay(domain_name=domain.name)
@rest_decorators.action(methods=["get"], detail=True)
def nodeinfo(self, request, *args, **kwargs):