From cf223e3d147c4cf656ca32c1d7072a397c2f8433 Mon Sep 17 00:00:00 2001 From: LingDocs <71590811+lingdocs@users.noreply.github.com> Date: Tue, 21 Sep 2021 14:30:13 -0400 Subject: [PATCH] Oops forgot send response --- account/src/routers/api-router.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/account/src/routers/api-router.ts b/account/src/routers/api-router.ts index 443618a..a47ef87 100644 --- a/account/src/routers/api-router.ts +++ b/account/src/routers/api-router.ts @@ -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; \ No newline at end of file +export default apiRouter;