Oops forgot send response

This commit is contained in:
LingDocs 2021-09-21 14:30:13 -04:00 committed by GitHub
parent 92034a16dc
commit cf223e3d14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -53,11 +53,11 @@ apiRouter.put("/user/tests", async (req, res, next) => {
try {
const { tests } = req.body as T.PostTestResultsBody;
await updateLingdocsUser(req.user.userId, { tests });
return {
sendResponse({
ok: true,
message: "posted test results",
tests,
};
});
} catch(e) {
next(e);
}
@ -194,4 +194,4 @@ apiRouter.post("/sign-out", (req, res) => {
sendResponse(res, { ok: true, message: "signed out" });
});
export default apiRouter;
export default apiRouter;