mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
fix chart bug
This commit is contained in:
parent
c2e385e88d
commit
81eb6a25bb
@ -51,7 +51,9 @@ function HandleLogData(
|
|||||||
|
|
||||||
async function handle(req: NextRequest) {
|
async function handle(req: NextRequest) {
|
||||||
const { searchParams } = new URL(req.url);
|
const { searchParams } = new URL(req.url);
|
||||||
const { startOfTheDayInTimeZone, endOfTheDayInTimeZone } = getCurStartEnd();
|
const currentTime = new Date(searchParams.get("date") ?? "");
|
||||||
|
const { startOfTheDayInTimeZone, endOfTheDayInTimeZone } =
|
||||||
|
getCurStartEnd(currentTime);
|
||||||
const todayLog = await prisma.logEntry.findMany({
|
const todayLog = await prisma.logEntry.findMany({
|
||||||
where: {
|
where: {
|
||||||
createdAt: {
|
createdAt: {
|
||||||
|
Loading…
Reference in New Issue
Block a user