From e278cbf6ec0350acdecef4c5d0f64ee9a8f7f892 Mon Sep 17 00:00:00 2001 From: senta_mandutz Date: Fri, 8 Feb 2019 15:23:35 +0100 Subject: [PATCH] changed tags from array to string --- message.model.js | 2 +- public/createMessage.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/message.model.js b/message.model.js index 773eb1d..de06898 100644 --- a/message.model.js +++ b/message.model.js @@ -14,7 +14,7 @@ const MessageSchema = mongoose.Schema({ subject: { type: String, required: true }, message: { type: String, required: true }, user: { type: String, required: true }, - tag: {type: [String] }, + tag: {type: String }, }); module.exports = mongoose.model('Message', MessageSchema); diff --git a/public/createMessage.js b/public/createMessage.js index 1206149..f2962c0 100644 --- a/public/createMessage.js +++ b/public/createMessage.js @@ -3,8 +3,12 @@ const CreateMsgRouter = {

Neue Nachricht erstellen

+
+ + +
- +
@@ -12,13 +16,9 @@ const CreateMsgRouter = {
- +
-
- - -