From 8c9ef3bd5d18f5deb132102a3f8ac11783239f6a Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 3 Apr 2024 18:21:00 +0300 Subject: [PATCH] fix status code reset #13 --- src/cli/document/crawl.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 838a0ec..e2b43e2 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -174,11 +174,11 @@ foreach($index->search('') ); } - // Update index time anyway and set reset code to 404 + // Update index time anyway and reset code to 404 $index->updateDocument( [ 'time' => time(), - 'code' => 200, + 'code' => 404, 'index' => 0 ], $document->getId()