From 728e0177759e4f21bdb782bc5342ff1d08d6ba62 Mon Sep 17 00:00:00 2001 From: jghauser Date: Tue, 18 Jun 2024 12:59:33 +0200 Subject: [PATCH] fix(data): update precalc after updating db --- lua/papis/search/data.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/papis/search/data.lua b/lua/papis/search/data.lua index 1a40974..c2ec075 100644 --- a/lua/papis/search/data.lua +++ b/lua/papis/search/data.lua @@ -114,8 +114,6 @@ local function init_tbl() local timestamp = make_timestamp(entry) - require("papis.search").update_precalc(entry) - self:__update({ where = { id = id }, set = { @@ -126,6 +124,8 @@ local function init_tbl() entry = id, }, }) + + require("papis.search").update_precalc(entry) end end