mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 07:13:18 +08:00
take into account user deleting their account in the meantime
This commit is contained in:
parent
c59187531e
commit
9e2121825d
1 changed files with 4 additions and 2 deletions
|
@ -75,6 +75,8 @@ if __name__ == "__main__":
|
||||||
user_id = job.payload.get("user_id")
|
user_id = job.payload.get("user_id")
|
||||||
user = User.get(user_id)
|
user = User.get(user_id)
|
||||||
|
|
||||||
|
# user might delete their account in the meantime
|
||||||
|
if user:
|
||||||
LOG.d("run onboarding_1 for user %s", user)
|
LOG.d("run onboarding_1 for user %s", user)
|
||||||
onboarding_1(user)
|
onboarding_1(user)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue