debug
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 4m33s

This commit is contained in:
2025-12-18 17:22:56 -05:00
parent 17a586a0af
commit 027ced8e14

View File

@@ -54,12 +54,21 @@ export const resolvers = {
}
});
},
getTotalStats: async () =>
await prisma.totalStats.findFirst({
getTotalStats: async () => {
const totalStats = await prisma.totalStats.findFirst({
orderBy: {
createdAt: "asc"
}
}),
});
console.log("total stats:", totalStats);
const allTotalStats = await prisma.totalStats.findMany({});
console.log("all total stats:", allTotalStats);
return totalStats;
},
getGroupStats: async (
_parent: unknown,
data: { groupID: number }