Skip to content

Commit

Permalink
fix(data): update precalc after updating db
Browse files Browse the repository at this point in the history
  • Loading branch information
jghauser committed Jun 18, 2024
1 parent 0361218 commit 728e017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/papis/search/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -126,6 +124,8 @@ local function init_tbl()
entry = id,
},
})

require("papis.search").update_precalc(entry)
end
end

Expand Down

0 comments on commit 728e017

Please sign in to comment.