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);
|
||||||
}
|
}
|
||||||
|
@ -194,4 +194,4 @@ apiRouter.post("/sign-out", (req, res) => {
|
||||||
sendResponse(res, { ok: true, message: "signed out" });
|
sendResponse(res, { ok: true, message: "signed out" });
|
||||||
});
|
});
|
||||||
|
|
||||||
export default apiRouter;
|
export default apiRouter;
|
||||||
|
|
Loading…
Reference in New Issue