From a30bef03fa1741204baab1d7d9f55766047f22bf Mon Sep 17 00:00:00 2001 From: SouthFox Date: Wed, 29 Mar 2023 02:06:52 +0800 Subject: [PATCH] fix/db type 'dict' is not supported --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 9b4a856..9b3e2ed 100644 --- a/app/models.py +++ b/app/models.py @@ -61,7 +61,7 @@ class InboxObject(Base): ap_id: Mapped[str] = Column(String, nullable=False, unique=True, index=True) # type: ignore ap_context = Column(String, nullable=True) ap_published_at = Column(DateTime(timezone=True), nullable=False) - ap_object: Mapped[dict[str, Any]] = Column(JSON, nullable=False) # type: ignore + ap_object: Mapped[dict[str, Any] | None] = Column(JSON, nullable=False) # type: ignore activity_object_ap_id = Column(String, nullable=True, index=True) visibility = Column(Enum(ap.VisibilityEnum), nullable=False)