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);