From cf45f089affd867d9a2830f11d75037cdba7a512 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Mon, 19 Jan 2026 14:01:44 +0000 Subject: [PATCH] feat: add subscription status checks for claiming monitor probes --- Common/Server/Services/MonitorProbeService.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Common/Server/Services/MonitorProbeService.ts b/Common/Server/Services/MonitorProbeService.ts index ab8b27d42b..73789e528b 100644 --- a/Common/Server/Services/MonitorProbeService.ts +++ b/Common/Server/Services/MonitorProbeService.ts @@ -111,6 +111,10 @@ export class Service extends DatabaseService { AND m."disableActiveMonitoring" = false AND m."deletedAt" IS NULL AND p."deletedAt" IS NULL + AND (p."paymentProviderSubscriptionStatus" IS NULL + OR p."paymentProviderSubscriptionStatus" IN ('active', 'trialing')) + AND (p."paymentProviderMeteredSubscriptionStatus" IS NULL + OR p."paymentProviderMeteredSubscriptionStatus" IN ('active', 'trialing')) ORDER BY mp."nextPingAt" ASC NULLS FIRST LIMIT $3 FOR UPDATE OF mp SKIP LOCKED