mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-03-25 09:25:51 +00:00
feat: Adjusted recent
This commit is contained in:
parent
e14a6d1ef0
commit
22b6f5ebd9
1 changed files with 2 additions and 2 deletions
|
|
@ -272,8 +272,8 @@ function main() {
|
|||
const outFile = path.join(outDir, "recent.json");
|
||||
fs.mkdirSync(outDir, { recursive: true });
|
||||
|
||||
const windowDays = Math.max(1, Number(process.env.RECENT_DAYS || 3));
|
||||
const maxItems = Math.max(1, Number(process.env.RECENT_MAX_ITEMS || 500));
|
||||
const windowDays = Math.max(1, Number(process.env.RECENT_DAYS || 7));
|
||||
const maxItems = Math.max(1, Number(process.env.RECENT_MAX_ITEMS || 5000));
|
||||
|
||||
const now = new Date();
|
||||
const since = new Date(now.getTime() - windowDays * 24 * 3600 * 1000);
|
||||
|
|
|
|||
Loading…
Reference in a new issue