chore: model.query change to db.session.query (#19551)

Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
This commit is contained in:
非法操作 2025-05-13 09:13:12 +08:00 • committed by GitHub
commit 085bd1aa93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 74 additions and 32 deletions

View file

@ -54,7 +54,7 @@ def mail_clean_document_notify_task():
)
if not current_owner_join:
continue
account = Account.query.filter(Account.id == current_owner_join.account_id).first()
account = db.session.query(Account).filter(Account.id == current_owner_join.account_id).first()
if not account:
continue