✨ Display times on the timetable
This commit is contained in:
@ -21,6 +21,7 @@ export async function getTimetable(req, res) {
|
||||
updatedAt: "desc",
|
||||
},
|
||||
});
|
||||
const times = await prisma.time.findMany();
|
||||
if (!timetable) {
|
||||
res.status(404).send({
|
||||
success: false,
|
||||
@ -33,6 +34,7 @@ export async function getTimetable(req, res) {
|
||||
trusted: timetable.trusted,
|
||||
source: timetable.source,
|
||||
data: timetable.data,
|
||||
times: times,
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user