Skip to content

Commit 333850b

Browse files
authored
Merge pull request #238 from ngageoint/eventSchema-unique-fix
Event schema unique fix
2 parents 95d6319 + 502b211 commit 333850b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ MAGE adheres to [Semantic Versioning](http://semver.org/).
1313
- Support for Mongoose 6.x
1414
- Support for Webpack 5.x
1515
- Support for Angular 14.x
16-
- [mongodb-migrations](https://www.npmjs.com/package/@ngageoint/mongodb-migrations) support for Mongo 4.x.
16+
- [mongodb-migrations](https://www.npmjs.com/package/@ngageoint/mongodb-migrations) support for Mongo 6.x.
1717
- The `MAGE_MONGO_TLS_INSECURE` env var avoids issues with [self-signed certs](https://github.com/Automattic/mongoose/issues/9147).
1818
- [GARS](https://github.com/ngageoint/gars-js) grid overlay
1919
- [MGRS](https://github.com/ngageoint/mgrs-js) grid overlay

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ requires Node > 18.x. Developers should use the latest LTS, 20.x at the time of
7272
### Install MongoDB
7373

7474
Before running a MAGE server, you'll need to install and start [MongoDB](https://www.mongodb.com/try/download/community).
75-
At the time of this writing, MAGE supports MongoDB version 4.x (4.4).
75+
At the time of this writing, MAGE supports MongoDB version 6.x (6.0).
7676

7777
### Install MAGE server packages
7878

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)