Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshz committed Feb 13, 2024
1 parent dfa97e5 commit 22699e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/Event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const eventSchema = new Schema(
endDate: {
type: Date,
required: function (this: InterfaceEvent): boolean {
return this.allDay;
return !this.allDay;
},
},
startTime: {
Expand Down

0 comments on commit 22699e3

Please sign in to comment.