Skip to content

Commit

Permalink
[Fix] Timestamp is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
Cytrogen committed May 24, 2024
1 parent 2f9a2b1 commit 2ac212a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/messages/message.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class Message extends Document {
@Prop({ required: true })
text: string

@Prop({ required: true, default: Date.now })
@Prop({ default: Date.now })
timestamp: Date
}

Expand Down

0 comments on commit 2ac212a

Please sign in to comment.