graph
This commit is contained in:
@ -120,7 +120,11 @@ app.get("/person/:id", async (req, res) => {
|
||||
return;
|
||||
}
|
||||
|
||||
ejs.renderFile('src/templates/person.ejs', { person: person }, function (err, str) {
|
||||
let points = await db.query.pointsTable.findMany({
|
||||
where: eq(pointsTable.personId, id)
|
||||
});
|
||||
|
||||
ejs.renderFile('src/templates/person.ejs', { person: person, points: JSON.stringify(points) }, function (err, str) {
|
||||
if (err) {
|
||||
res.status(500).send(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user