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

This commit is contained in:
2025-12-18 14:43:10 -05:00
parent 4941fde333
commit 98db311b01
2 changed files with 12 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
/* eslint-disable no-unused-vars */
/* eslint-disable react-hooks/rules-of-hooks */
import { createYoga, Plugin, createSchema } from "graphql-yoga";
import { EnvelopArmorPlugin } from "@escape.tech/graphql-armor";

View File

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