Skip to content

Commit

Permalink
update comment api
Browse files Browse the repository at this point in the history
  • Loading branch information
tigransimonyan committed Mar 10, 2024
1 parent 224c0ac commit 7a3328f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/api/comments/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const schema = new Schema<TComment>(
required: true
}
},
parentId: {
type: String,
required: false
},
gravatar: {
type: String,
required: false
Expand Down
2 changes: 1 addition & 1 deletion src/types/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type TComment = {
gravatar: string;
author: string;
email: string;
siteId: Schema.Types.ObjectId;
parentId: Schema.Types.ObjectId;
pageUrl: string;
pageId: string;
body: string;
Expand Down

0 comments on commit 7a3328f

Please sign in to comment.