clear debug
This commit is contained in:
parent
9092d0f4d4
commit
0635d05d51
|
@ -72,10 +72,9 @@ export async function getAllFeedback(): Promise<any[]> {
|
||||||
},
|
},
|
||||||
limit: 5000,
|
limit: 5000,
|
||||||
});
|
});
|
||||||
console.log(res);
|
|
||||||
const docs = res.docs;
|
const docs = res.docs;
|
||||||
// @ts-ignore
|
// @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[];
|
return docs as any[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -206,8 +206,6 @@ const authRouter = (passport: PassportStatic) => {
|
||||||
return res.redirect("/");
|
return res.redirect("/");
|
||||||
}
|
}
|
||||||
const docs = await getAllFeedback();
|
const docs = await getAllFeedback();
|
||||||
console.log("one doc");
|
|
||||||
console.log(docs[0]);
|
|
||||||
res.render("grammar-feedback", { docs });
|
res.render("grammar-feedback", { docs });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
next(e);
|
next(e);
|
||||||
|
|
Loading…
Reference in New Issue