fix: 注销和删除会停掉学习,并去掉全员状态接口

This commit is contained in:
2026-11-16 02:40:05 +08:00
parent 08e5a1b849
commit 42f2b457a0
6 changed files with 29 additions and 11 deletions
+3
View File
@@ -350,4 +350,7 @@ def delete_user(db: Session, employee_id: str) -> dict:
account = _require(db, employee_id)
db.delete(account)
db.commit()
from euniv.autostudy import stop_account
stop_account(employee_id)
return {"ok": True}