Open Jnchi opened 4 years ago
Events can be created manually by importing the following JSON document into MongoDB.
{
"_id": "5dbae7478e986f602e35b921",
"teams": [],
"users": [],
"challenges": [],
"settings": {
"maxTries": [],
"userAuths": []
},
"registrationStart": "2019-10-31T13:53:11.733Z",
"end": "2019-10-31T13:52:16.000Z",
"start": "2019-10-31T13:53:11.733Z",
"description": "Bar",
"title": "Foo",
"created": "2019-10-31T13:53:11.733Z",
"__v": 0
}
diff --git a/modules/ctfEvents/server/models/ctfEvent.server.model.js b/modules/ctfEvents/server/models/ctfEvent.server.model.js
index ee8e01a..f62beb6 100644
--- a/modules/ctfEvents/server/models/ctfEvent.server.model.js
+++ b/modules/ctfEvents/server/models/ctfEvent.server.model.js
@@ -15,8 +15,7 @@ var CtfEventSchema = new Schema({
title: {
type: String,
default: '',
- trim: true,
- required: 'Event Title cannot be blank'
+ trim: true
},
description:{
type: String,
Location: Events > New Event > Create Event