rename to profile, users are people

This commit is contained in:
Adolfo Reyna
2021-08-18 07:57:19 -07:00
parent 416c14d03b
commit 95a7bcb3ff
6 changed files with 46 additions and 33 deletions
+3 -3
View File
@@ -19,11 +19,11 @@ DB.getDB.then((DB)=>{
});
router.get("/:id", async (req, res) => {
let userid = req.params.id;
let user = await DB.getProfile(userid);
let profileId = req.params.id;
let profile = await DB.getProfile(profileId);
return res.json({
status: "ok",
user
... profile
});
});