修复一下图表的bug

This commit is contained in:
sijinhui
2024-02-22 13:14:34 +08:00
parent 3dfb559dc0
commit 5aef4ed70f
4 changed files with 4 additions and 8 deletions

View File

@@ -66,8 +66,8 @@ async function handle(req: NextRequest) {
const todayLog = await prisma.logEntry.findMany({
where: {
createdAt: {
gte: startOfTheDayInTimeZone, // gte 表示 '大于等于'
lte: endOfTheDayInTimeZone, // lte 表示 '小于等于'
gte: startOfTheDayInTimeZone.toISOString(), // gte 表示 '大于等于'
lte: endOfTheDayInTimeZone.toISOString(), // lte 表示 '小于等于'
},
},
include: {