Openstatus www.openstatus.dev

๐Ÿš‘ Bug workflow (#1186)

* ๐Ÿš‘ fix workflow

* ๐Ÿš‘ fix workflow

* fix workflow

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Thibault Le Ouay
autofix-ci[bot]
and committed by
GitHub
d7d5ef9e 58da54a4

+3 -3
+3 -3
apps/workflows/src/cron/monitor.ts
··· 39 39 "workflow", 40 40 ); 41 41 42 - const limiter = new RateLimiter({ tokensPerInterval: 50, interval: "minute" }); 42 + const limiter = new RateLimiter({ tokensPerInterval: 15, interval: "second" }); 43 43 44 44 export async function LaunchMonitorWorkflow() { 45 45 // Expires is one month after last connection, so if we want to reach people who connected 3 months ago we need to check for people with expires 2 months ago ··· 169 169 isNull(schema.monitor.deletedAt), 170 170 ), 171 171 ); 172 - if (nbRunningMonitor > 0) { 173 - console.log(`user has running monitors for ${user.userId}`); 172 + if (nbRunningMonitor === 0) { 173 + console.log(`user has no running monitors for ${user.userId}`); 174 174 return; 175 175 } 176 176 await CreateTask({