From 49345d7b8e028af48ad77e846d50281db3af0650 Mon Sep 17 00:00:00 2001 From: Clinton Werth Date: Tue, 7 Jan 2025 12:47:11 -0600 Subject: [PATCH] fix for mongodb 5.0.1 compatibility --- service/src/models/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/models/event.js b/service/src/models/event.js index 08e5a8d19..1b0758a4a 100644 --- a/service/src/models/event.js +++ b/service/src/models/event.js @@ -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 },