From d0f95140dfe260980aefd4fc7ef134bd183f5ddc Mon Sep 17 00:00:00 2001 From: Peter Vacho Date: Sat, 4 Jan 2025 12:37:02 +0100 Subject: [PATCH] rename reminder notif type to message --- src/api/notifications.py | 2 +- src/db/models/notification.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/notifications.py b/src/api/notifications.py index bd91881..d5709ca 100644 --- a/src/api/notifications.py +++ b/src/api/notifications.py @@ -26,7 +26,7 @@ class NotificationData(BaseModel): id: PydanticObjectId user_id: PydanticObjectId - event_type: Literal["reminder", "invitation"] + event_type: Literal["message", "invitation"] message: str data: Any read: bool diff --git a/src/db/models/notification.py b/src/db/models/notification.py index d6d04bf..ad18e77 100644 --- a/src/db/models/notification.py +++ b/src/db/models/notification.py @@ -13,7 +13,7 @@ class Notification(Document): """Notification table.""" user: Annotated[BeanieLink[User], Indexed()] - event_type: Annotated[Literal["reminder", "invitation"], Indexed()] + event_type: Annotated[Literal["message", "invitation"], Indexed()] message: str data: str read: bool