mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 18:28:38 +00:00
fix(ai-usage): align since date with top-of-hour bucket boundaries
This commit is contained in:
@@ -117,6 +117,9 @@ export class AiUsageService {
|
||||
break
|
||||
}
|
||||
|
||||
since.setMinutes(0, 0, 0)
|
||||
|
||||
|
||||
if (!params.userId) {
|
||||
// Return Team-Level Usage (userId = null)
|
||||
const teamRecords = await prisma.aiUsage.findMany({
|
||||
|
||||
Reference in New Issue
Block a user