migrator - fix typo

feature/default_network_editable
kumavis 8 years ago
parent 092807f56e
commit 2c8bbe3b25
  1. 2
      app/scripts/lib/migrator/index.js

@ -18,7 +18,7 @@ class Migrator {
let migration = pendingMigrations[index]
versionedData = await migration.migrate(versionedData)
if (!versionedData.data) throw new Error('Migrator - migration returned empty data')
if (versionedData.version !== undefined && migratedData.meta.version !== migration.version) throw new Error('Migrator - Migration did not update version number correctly')
if (versionedData.version !== undefined && versionedData.meta.version !== migration.version) throw new Error('Migrator - Migration did not update version number correctly')
}
return versionedData

Loading…
Cancel
Save