debugging in route

This commit is contained in:
lingdocs 2021-09-21 13:13:24 -04:00
parent 34c0c4b24c
commit 946a6c06e3
1 changed files with 2 additions and 0 deletions

View File

@ -52,7 +52,9 @@ apiRouter.put("/user/tests", async (req, res, next) => {
if (!req.user) return next("user not found");
try {
const { tests } = req.body as T.PostTestResultsBody;
console.log("will add tests to user");
await updateLingdocsUser(req.user.userId, { tests });
console.log("successful update of tests", JSON.stringify(tests));
return {
ok: true,
message: "posted test results",