api fixes

This commit is contained in:
2018-05-23 20:46:47 +03:00
parent 76b6f76758
commit 3a8df79bf5
7 changed files with 46 additions and 23 deletions

View File

@@ -29,6 +29,7 @@ TodoSchema.methods.toJson = function () {
id: this._id.toString(),
text: this.text,
list: this.list.toString(),
completed: this.completed,
};
};