Skip to content

Commit

Permalink
perf(comment): set status default as Unread key
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Jul 15, 2022
1 parent ff0c529 commit a641e3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/comment/comment.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author: Wibus
* @Date: 2022-07-03 17:49:03
* @LastEditors: Wibus
* @LastEditTime: 2022-07-03 19:01:21
* @LastEditTime: 2022-07-15 18:15:26
* Coding With IU
*/

Expand Down Expand Up @@ -77,7 +77,7 @@ export class CommentModel extends BaseModel {
@prop({ required: true })
text: string;

@prop({ default: 0 })
@prop({ default: CommentStatus.Unread })
status: CommentStatus;

@prop({ ref: () => CommentModel })
Expand Down

0 comments on commit a641e3b

Please sign in to comment.