donal
2018-04-04 c57b24b60928a8f0d814f765468cc3dc0f2b6d6a
FIX model issue
1 files added
1 files modified
28 ■■■■■ changed files
.vscode/launch.json 25 ●●●●● patch | view | raw | blame | history
server/api/todo/todo.model.js 3 ●●●● patch | view | raw | blame | history
.vscode/launch.json
New file
@@ -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"
        }
    ]
}
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);