Skip to content

Commit 286b9d3

Browse files
author
jghauser
committed
fix(init): fix db tbl empty check
1 parent d85d7ec commit 286b9d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/papis/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ function M.start()
110110

111111
-- only synchronise the data table if it's not empty
112112
-- (in that case, we tell users to manually do it because it takes a while)
113-
if not db.data:empty() then
114-
log.debug("Setting up/syncrhonising the database")
113+
if (db.data:empty() == false) and (db.metadata:empty() == false) then
114+
log.debug("Setting up/syncronising the database")
115115
data:sync_db()
116116
end
117117
else

0 commit comments

Comments
 (0)