From 95a1ec9771a4f8cba5bdcba146db378281fa10cc Mon Sep 17 00:00:00 2001 From: Yannic Kilcher Date: Thu, 15 Dec 2022 12:58:45 +0100 Subject: [PATCH] changed post IDs to strings --- backend/app/schemas/protocol.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/app/schemas/protocol.py b/backend/app/schemas/protocol.py index 72f91e51..f1400a96 100644 --- a/backend/app/schemas/protocol.py +++ b/backend/app/schemas/protocol.py @@ -34,7 +34,7 @@ class TaskResponse(BaseModel): class PostCreatedTaskResponse(TaskResponse): type: Literal["post_created"] = "post_created" - post_id: UUID + post_id: str class SummarizeStoryTask(Task): @@ -44,7 +44,7 @@ class SummarizeStoryTask(Task): class TaskDone(Task): type: Literal["task_done"] = "task_done" - reply_to_post_id: UUID + reply_to_post_id: str class Interaction(BaseModel): @@ -58,6 +58,6 @@ class TextReplyToPost(Interaction): """A user has replied to a post with text.""" type: Literal["text_reply_to_post"] = "text_reply_to_post" - post_id: UUID - user_post_id: UUID + post_id: str + user_post_id: str text: str