debug
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 4m51s
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 4m51s
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable no-unused-vars */
|
||||||
/* eslint-disable react-hooks/rules-of-hooks */
|
/* eslint-disable react-hooks/rules-of-hooks */
|
||||||
import { createYoga, Plugin, createSchema } from "graphql-yoga";
|
import { createYoga, Plugin, createSchema } from "graphql-yoga";
|
||||||
import { EnvelopArmorPlugin } from "@escape.tech/graphql-armor";
|
import { EnvelopArmorPlugin } from "@escape.tech/graphql-armor";
|
||||||
|
|||||||
@@ -54,12 +54,20 @@ export const resolvers = {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getTotalStats: async () =>
|
getTotalStats: async () => {
|
||||||
await prisma.totalStats.findFirst({
|
const totalStats = await prisma.totalStats.findFirst({
|
||||||
orderBy: {
|
orderBy: {
|
||||||
createdAt: "asc"
|
createdAt: "asc"
|
||||||
}
|
}
|
||||||
}),
|
});
|
||||||
|
|
||||||
|
const allTotalStats = await prisma.totalStats.findMany();
|
||||||
|
|
||||||
|
console.log("total stats:", totalStats);
|
||||||
|
console.log("ALL total stats:", allTotalStats);
|
||||||
|
|
||||||
|
return totalStats;
|
||||||
|
},
|
||||||
getGroupStats: async (
|
getGroupStats: async (
|
||||||
_parent: unknown,
|
_parent: unknown,
|
||||||
data: { groupID: number }
|
data: { groupID: number }
|
||||||
|
|||||||
Reference in New Issue
Block a user