Do not proceed when meilisearch note index returns 404 status

main
Nils Gerstner 1 year ago
parent 8f77089010
commit 2c01000127

@ -23,7 +23,7 @@ function M.prune_search_db()
accept = "application/json",
})
if res then
if res.status ~= 404 then
local tab = json.parse(res.body)
if tab and tab['total'] > 0 then
for i, v in ipairs(tab['results']) do

Loading…
Cancel
Save