diff --git a/.config/nvim/lua/note-workflow/delete.lua b/.config/nvim/lua/note-workflow/delete.lua index 3e44b15..823574a 100644 --- a/.config/nvim/lua/note-workflow/delete.lua +++ b/.config/nvim/lua/note-workflow/delete.lua @@ -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