Skip to content

Commit

Permalink
edit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Jun 6, 2024
1 parent 08fecf6 commit 97c2339
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/app/api/cron/usage/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ const limit = 100;
export const updateUsage = async () => {
const workspaces = await prisma.project.findMany({
where: {
// Check only workspaces that haven't been checked in the last 12 hours
usageLastChecked: {
lt: new Date(new Date().getTime() - 12 * 60 * 60 * 1000), // 12 hours ago
lt: new Date(new Date().getTime() - 12 * 60 * 60 * 1000),
},
},
include: {
Expand Down

0 comments on commit 97c2339

Please sign in to comment.