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