Skip to content

Commit

Permalink
fix: nullish coalesce
Browse files Browse the repository at this point in the history
  • Loading branch information
acifani committed Sep 20, 2024
1 parent 558cb8d commit 626bcde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const server = app.listen(port, () => {
// Refresh Actual data at a given frequence
const intervalID = setInterval(() => {
actual.init().then(() => console.log('Actual DB refreshed'));
}, Number(process.env.ACTUAL_REFRESH_INTERVAL_SECONDS) * 1000 ?? 60_000);
}, (Number(process.env.ACTUAL_REFRESH_INTERVAL_SECONDS) || 60) * 1000);

process.on('SIGTERM', shutdown);
process.on('SIGINT', shutdown);
Expand Down

0 comments on commit 626bcde

Please sign in to comment.