Skip to content

Commit

Permalink
fix migrate calling loadStateFeeds when done
Browse files Browse the repository at this point in the history
  • Loading branch information
staltz committed Mar 3, 2021
1 parent 0f6273f commit f66d6c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit f66d6c6

Please sign in to comment.