···3939 "workflow",
4040);
41414242-const limiter = new RateLimiter({ tokensPerInterval: 50, interval: "minute" });
4242+const limiter = new RateLimiter({ tokensPerInterval: 15, interval: "second" });
43434444export async function LaunchMonitorWorkflow() {
4545 // 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
···169169 isNull(schema.monitor.deletedAt),
170170 ),
171171 );
172172- if (nbRunningMonitor > 0) {
173173- console.log(`user has running monitors for ${user.userId}`);
172172+ if (nbRunningMonitor === 0) {
173173+ console.log(`user has no running monitors for ${user.userId}`);
174174 return;
175175 }
176176 await CreateTask({