✨ Make history API compatible with frontend
This commit is contained in:
@ -101,6 +101,9 @@ export async function getHistory(req, res) {
|
||||
include: {
|
||||
substitution: true,
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: "desc",
|
||||
},
|
||||
};
|
||||
if (requestedClass) {
|
||||
prismaOptions.where.substitution.class = { has: requestedClass };
|
||||
|
Reference in New Issue
Block a user