Skip to content

Commit

Permalink
fix recalculate script firebase auth error
Browse files Browse the repository at this point in the history
  • Loading branch information
sipec committed Oct 23, 2024
1 parent bad613f commit 32bf6de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/shared/src/update-user-portfolio-histories-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ const userToPortfolioMetrics: {
timeCachedPeriodProfits: number
}
} = {}
const LIMIT = isProd() ? 400 : 10

export async function updateUserPortfolioHistoriesCore(userIds?: string[]) {
const LIMIT = isProd() ? 400 : 10

const now = Date.now()
const yesterday = now - DAY_MS
const weekAgo = now - DAY_MS * 7
Expand Down

0 comments on commit 32bf6de

Please sign in to comment.