autobee 2.9.4 → 2.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/migrations.js +2 -2
- package/package.json +1 -1
package/lib/migrations.js
CHANGED
|
@@ -94,7 +94,7 @@ async function checkAutobaseMigration(store, local, bootstrap) {
|
|
|
94
94
|
|
|
95
95
|
// nothing reads the info here anymore, but a legacy system that will not
|
|
96
96
|
// decode has to throw for migrateWithFallback pathway
|
|
97
|
-
await readLegacySystemInfo(core, length, { wait: false })
|
|
97
|
+
if (length > 0) await readLegacySystemInfo(core, length, { wait: false })
|
|
98
98
|
|
|
99
99
|
const nodes = await Promise.all(
|
|
100
100
|
catchup.map((n) => getWriterBatch(store, n, bootstrap.key, encryptionKey))
|
|
@@ -221,7 +221,7 @@ async function findLocalSystemLength(core, session, systemLength) {
|
|
|
221
221
|
length--
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
|
|
224
|
+
return 0
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
async function sameTree(core, session, length) {
|