Fakultas Ilmu Komputer UI

Commit 2f66ac0e authored by ZAKI RAIHAN's avatar ZAKI RAIHAN
Browse files

Reset chatId when change phone number

parent 65d1e89b
......@@ -38,6 +38,7 @@ def changeAccountPhoneNumber(username, newPhoneNumber):
checkAccountExistance = AccountModel.query.filter(AccountModel.ssoId==str(username)).first()
try:
checkAccountExistance.phoneNumber = newPhoneNumber
checkAccountExistance.chatId = None
checkAccountExistance.update()
return "success"
except Exception as e:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment