mirror of
https://github.com/yusufipk/RememberMe.git
synced 2026-09-11 19:06:06 +00:00
change(readme) update readme and some changes to database
This commit is contained in:
+2
-1
@@ -32,6 +32,7 @@ router.post("/", auth, async (req, res) => {
|
||||
|
||||
const {
|
||||
name,
|
||||
metAt,
|
||||
place,
|
||||
contact,
|
||||
birth,
|
||||
@@ -50,6 +51,7 @@ router.post("/", auth, async (req, res) => {
|
||||
const person = new Person({
|
||||
name,
|
||||
place,
|
||||
metAt,
|
||||
contact,
|
||||
birth,
|
||||
age,
|
||||
@@ -100,7 +102,6 @@ router.put("/:id", auth, validateObjectId, async (req, res) => {
|
||||
if (!req.body.notes) req.body.notes = notes;
|
||||
if (!req.body.tags) req.body.tags = tags;
|
||||
|
||||
console.log(req.body);
|
||||
const { error } = validate(req.body);
|
||||
if (error) return res.status(400).send(error.details[0].message);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user