diff --git a/backend/src/main.rs b/backend/src/main.rs index 68089bf..366e278 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -334,7 +334,9 @@ async fn run() -> Result<(), StartupError> { // WASM plugins need per-community context. let community_ids: Vec = - match sqlx::query_scalar("SELECT id FROM communities WHERE is_active = true") + match sqlx::query_scalar( + "SELECT id FROM communities WHERE is_active = true AND settings->>'plugin_allow_background_jobs' = 'true'", + ) .fetch_all(&cron_pool) .await {