✨ Add "trusted" and "source" to Timetable

This commit is contained in:
minie4 committed 2022-08-21 00:50:06 +02:00
1 parent b879f48c61
commit 5fd7ae44fd
4 files changed
+35 -6

No files matched your search

+5 -1
View File
@@ -29,7 +29,11 @@ export async function getTimetable(req, res) {
});
return;
}
res.send(timetable.data);
res.send({
trusted: timetable.trused,
source: timetable.source,
data: timetable.data,
});
}
// Helper function for converting a date string
+2
View File
@@ -15,6 +15,8 @@ model Timetable {
validFrom DateTime @default(now())
validUntil DateTime?
data Json
source String?
trused Boolean @default(true)
}
model Substitution {