chore: all model.query replace to db.session.query (#19521)
This commit is contained in:
parent
b00f94df64
commit
14cd71ed0a
8 changed files with 99 additions and 67 deletions
|
|
@ -45,7 +45,7 @@ def mail_clean_document_notify_task():
|
|||
if plan != "sandbox":
|
||||
knowledge_details = []
|
||||
# check tenant
|
||||
tenant = Tenant.query.filter(Tenant.id == tenant_id).first()
|
||||
tenant = db.session.query(Tenant).filter(Tenant.id == tenant_id).first()
|
||||
if not tenant:
|
||||
continue
|
||||
# check current owner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue