From 132d3032d4c600ddfd55286a290e271a9b19a828 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Tue, 20 May 2025 14:04:45 +0100 Subject: [PATCH] I think removing google broke things --- worker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worker.js b/worker.js index 5e4d493..f171b86 100644 --- a/worker.js +++ b/worker.js @@ -20,6 +20,9 @@ const queue = kue.createQueue({ function search(data, done) { const share = data.share; const service = services.find(item => data.service.id === item.id); + if (!service) { + return; + } debug(`Searching on: ${service.id}`); co(function* gen() { // eslint-disable-line no-loop-func