浏览代码

fix: undefined attribute 'query' on MessageAnnotation (#13852)

Yeuoly 5 月之前
父节点
当前提交
bea10b4356
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/models/model.py

+ 1 - 1
api/models/model.py

@@ -1289,7 +1289,7 @@ class MessageAnnotation(Base):
         return account
 
 
-class AppAnnotationHitHistory(Base):
+class AppAnnotationHitHistory(db.Model):  # type: ignore[name-defined]
     __tablename__ = "app_annotation_hit_histories"
     __table_args__ = (
         db.PrimaryKeyConstraint("id", name="app_annotation_hit_histories_pkey"),