Fix
This commit is contained in:
+1
-1
@@ -196,7 +196,7 @@ class MongoWorker:
|
|||||||
new_comment = Comment(comment_id=self.get_and_update_counter(counter_name="comment"),
|
new_comment = Comment(comment_id=self.get_and_update_counter(counter_name="comment"),
|
||||||
author_id=user_id,
|
author_id=user_id,
|
||||||
card_id=card_id,
|
card_id=card_id,
|
||||||
commet_text=comment_text,
|
comment_text=comment_text,
|
||||||
creation_date=datetime.now().isoformat())
|
creation_date=datetime.now().isoformat())
|
||||||
result = self.comments_data.insert_one(new_comment.model_dump())
|
result = self.comments_data.insert_one(new_comment.model_dump())
|
||||||
if result:
|
if result:
|
||||||
|
|||||||
@@ -43,6 +43,6 @@ class Comment(BaseModel):
|
|||||||
|
|
||||||
author_id: int
|
author_id: int
|
||||||
card_id: int
|
card_id: int
|
||||||
commet_text: str
|
comment_text: str
|
||||||
|
|
||||||
creation_date: str
|
creation_date: str
|
||||||
Reference in New Issue
Block a user