fix(user): update verification status field to t_verified in verify_user_with_person_api_task
This commit is contained in:
+2
-2
@@ -220,7 +220,7 @@ def verify_user_with_person_api_task(user_id: int):
|
|||||||
and data.get("atoll_en").strip() == t_user.t_atoll.name
|
and data.get("atoll_en").strip() == t_user.t_atoll.name
|
||||||
and data.get("island_name_en").strip() == t_user.t_island.name
|
and data.get("island_name_en").strip() == t_user.t_island.name
|
||||||
):
|
):
|
||||||
t_user.verified = True
|
t_user.t_verified = True
|
||||||
t_user.save()
|
t_user.save()
|
||||||
send_sms(
|
send_sms(
|
||||||
t_user.t_mobile,
|
t_user.t_mobile,
|
||||||
@@ -228,7 +228,7 @@ def verify_user_with_person_api_task(user_id: int):
|
|||||||
)
|
)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
t_user.verified = False
|
t_user.t_verified = False
|
||||||
t_user.save()
|
t_user.save()
|
||||||
|
|
||||||
send_sms(
|
send_sms(
|
||||||
|
|||||||
Reference in New Issue
Block a user