From f66d6c604a90d9dec7b98de1b089956956864759 Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Wed, 3 Mar 2021 17:50:17 +0200 Subject: [PATCH] fix migrate calling loadStateFeeds when done --- migrate.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/migrate.js b/migrate.js index c8490f12..8556de2a 100644 --- a/migrate.js +++ b/migrate.js @@ -327,7 +327,11 @@ exports.init = function init(sbot, config) { } }) } else { - if (sbot.db) sbot.db.loadStateFeeds() + if (sbot.db) { + sbot.db.loadStateFeeds(() => { + sbot.db.setStateFeedsReady(true) + }) + } doneMigrating() migrateLive() }