refactor(api): change async functions to synchronous for user verification task 🔨
This commit is contained in:
+2
-2
@@ -29,9 +29,9 @@ def assign_device_permissions(sender, instance, created, **kwargs):
|
||||
|
||||
|
||||
@receiver(post_save, sender=User)
|
||||
async def verify_user_with_person_api(sender, instance, created, **kwargs):
|
||||
def verify_user_with_person_api(sender, instance, created, **kwargs):
|
||||
if created:
|
||||
await verify_user_with_person_api_task.defer_async(instance.id)
|
||||
verify_user_with_person_api_task(instance.id)
|
||||
|
||||
|
||||
@receiver(reset_password_token_created)
|
||||
|
||||
Reference in New Issue
Block a user