debugging in route
This commit is contained in:
parent
34c0c4b24c
commit
946a6c06e3
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue