✨ Include class in history api response
This commit is contained in:
1 parent
0ae553cca8
commit
9aab04d4d2
1 file changed
+1
@@ -231,6 +231,7 @@ export async function getHistory(req, res) {
|
||||
return {
|
||||
id: element.id,
|
||||
type: element.type,
|
||||
class: element.substitution.class,
|
||||
substitutionId: element.substitutionId,
|
||||
lesson: element.substitution.lesson,
|
||||
updatedAt: new Date(element.createdAt).getTime(),
|
||||
|
||||
Reference in new issue
Block a user