Skip to content

Commit

Permalink
fix for mongodb 5.0.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Clinton Werth authored and Clinton Werth committed Jan 7, 2025
1 parent 95d6319 commit 49345d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/src/models/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const FormSchema = new Schema({

const EventSchema = new Schema({
_id: { type: Number, required: true },
name: { type: String, required: true, unique: 'Event with name "{VALUE}" already exists.' },
name: { type: String, required: true, unique: true },
description: { type: String, required: false },
complete: { type: Boolean },
collectionName: { type: String, required: true },
Expand Down

0 comments on commit 49345d7

Please sign in to comment.