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");
|
if (!req.user) return next("user not found");
|
||||||
try {
|
try {
|
||||||
const { tests } = req.body as T.PostTestResultsBody;
|
const { tests } = req.body as T.PostTestResultsBody;
|
||||||
|
console.log("will add tests to user");
|
||||||
await updateLingdocsUser(req.user.userId, { tests });
|
await updateLingdocsUser(req.user.userId, { tests });
|
||||||
|
console.log("successful update of tests", JSON.stringify(tests));
|
||||||
return {
|
return {
|
||||||
ok: true,
|
ok: true,
|
||||||
message: "posted test results",
|
message: "posted test results",
|
||||||
|
|
Loading…
Reference in New Issue