Skip to content

Commit 49345d7

Browse files
Clinton WerthClinton Werth
authored andcommitted
fix for mongodb 5.0.1 compatibility
1 parent 95d6319 commit 49345d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/src/models/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const FormSchema = new Schema({
7474

7575
const EventSchema = new Schema({
7676
_id: { type: Number, required: true },
77-
name: { type: String, required: true, unique: 'Event with name "{VALUE}" already exists.' },
77+
name: { type: String, required: true, unique: true },
7878
description: { type: String, required: false },
7979
complete: { type: Boolean },
8080
collectionName: { type: String, required: true },

0 commit comments

Comments
 (0)