From c57b24b60928a8f0d814f765468cc3dc0f2b6d6a Mon Sep 17 00:00:00 2001
From: donal <donalspring@gmail.com>
Date: Wed, 04 Apr 2018 16:51:05 +0200
Subject: [PATCH] FIX model issue

---
 server/api/todo/todo.model.js |    3 ++-
 .vscode/launch.json           |   25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..2942a93
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,25 @@
+{
+    // Use IntelliSense to learn about possible attributes.
+    // Hover to view descriptions of existing attributes.
+    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+    {
+        "type": "node",
+        "request": "launch",
+        "name": "Launch via NPM",
+        "runtimeExecutable": "npm",
+        "runtimeArgs": [
+            "run-script",
+            "start"
+        ],
+        "port": 9229
+    },
+        {
+            "type": "node",
+            "request": "launch",
+            "name": "Launch Program",
+            "program": "${workspaceFolder}/server/app.js"
+        }
+    ]
+}
\ No newline at end of file
diff --git a/server/api/todo/todo.model.js b/server/api/todo/todo.model.js
index 43d8b05..1693ee6 100755
--- a/server/api/todo/todo.model.js
+++ b/server/api/todo/todo.model.js
@@ -5,7 +5,8 @@
 
 const TodoSchema = new Schema({
   title: String,
-  completed: Boolean
+  completed: Boolean,
+  important: Boolean
 });
 
 module.exports = mongoose.model('Todo', TodoSchema);

--
Gitblit v1.9.3