From 67d3348bbf9d5079919f171813dfcbc592b7c24e Mon Sep 17 00:00:00 2001 From: sebiboga Date: Tue, 28 Jul 2026 12:00:24 +0300 Subject: [PATCH] fix: pass empty string instead of null to postJson in count query --- v1/scraper/jobs/delete/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v1/scraper/jobs/delete/index.php b/v1/scraper/jobs/delete/index.php index adce3f5..d65b42b 100644 --- a/v1/scraper/jobs/delete/index.php +++ b/v1/scraper/jobs/delete/index.php @@ -121,7 +121,7 @@ function buildSolrUpdateUrl(string $server, string $core, string $protocol = 'ht 'wt' => 'json' ]); - $countResponse = postJson($selectUrl, null, $SOLR_USER, $SOLR_PASS); + $countResponse = postJson($selectUrl, '', $SOLR_USER, $SOLR_PASS); $totalCount = $countResponse['response']['numFound'] ?? 0; if ($totalCount === 0) {