diff --git a/account/src/lib/couch-db.ts b/account/src/lib/couch-db.ts index 2bf1394..1114d56 100644 --- a/account/src/lib/couch-db.ts +++ b/account/src/lib/couch-db.ts @@ -49,6 +49,7 @@ export async function getAllLingdocsUsers(): Promise { } export async function insertLingdocsUser(user: T.LingdocsUser): Promise { + console.log("coming to insert this user", user); const res = await usersDb.insert(user); const newUser = processAPIResponse(user, res); if (!newUser) { diff --git a/account/src/routers/api-router.ts b/account/src/routers/api-router.ts index f18eb5c..369eacc 100644 --- a/account/src/routers/api-router.ts +++ b/account/src/routers/api-router.ts @@ -51,6 +51,7 @@ apiRouter.put("/user/tests", async (req, res, next) => { if (!req.user) return next("user not found"); try { const { tests } = req.body as T.PostTestResultsBody; + console.log("will update with", tests); await updateLingdocsUser(req.user.userId, { tests }); sendResponse(res, { ok: true,