From 0635d05d511212ef68eae849419d18ade218be8d Mon Sep 17 00:00:00 2001 From: adueck Date: Mon, 28 Aug 2023 15:09:43 +0400 Subject: [PATCH] clear debug --- account/src/lib/couch-db.ts | 3 +-- account/src/routers/auth-router.ts | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/account/src/lib/couch-db.ts b/account/src/lib/couch-db.ts index 334a8d0..8062ce5 100644 --- a/account/src/lib/couch-db.ts +++ b/account/src/lib/couch-db.ts @@ -72,10 +72,9 @@ export async function getAllFeedback(): Promise { }, limit: 5000, }); - console.log(res); const docs = res.docs; // @ts-ignore - docs.sort((a, b) => a.feedback.ts - b.feedback.ts); + docs.sort((a, b) => b.feedback.ts - a.feedback.ts); return docs as any[]; } diff --git a/account/src/routers/auth-router.ts b/account/src/routers/auth-router.ts index 47da142..c4f335e 100644 --- a/account/src/routers/auth-router.ts +++ b/account/src/routers/auth-router.ts @@ -206,8 +206,6 @@ const authRouter = (passport: PassportStatic) => { return res.redirect("/"); } const docs = await getAllFeedback(); - console.log("one doc"); - console.log(docs[0]); res.render("grammar-feedback", { docs }); } catch (e) { next(e);