Oops forgot send response
This commit is contained in:
parent
92034a16dc
commit
cf223e3d14
|
@ -53,11 +53,11 @@ apiRouter.put("/user/tests", async (req, res, next) => {
|
||||||
try {
|
try {
|
||||||
const { tests } = req.body as T.PostTestResultsBody;
|
const { tests } = req.body as T.PostTestResultsBody;
|
||||||
await updateLingdocsUser(req.user.userId, { tests });
|
await updateLingdocsUser(req.user.userId, { tests });
|
||||||
return {
|
sendResponse({
|
||||||
ok: true,
|
ok: true,
|
||||||
message: "posted test results",
|
message: "posted test results",
|
||||||
tests,
|
tests,
|
||||||
};
|
});
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
next(e);
|
next(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue