forked from trent_larson/crowd-funder-for-time-pwa
IndexedDB migration: fix settings comparison
This commit is contained in:
@@ -557,7 +557,7 @@ function compareSettings(
|
||||
|
||||
// Find settings that exist in Dexie but not in SQLite
|
||||
for (const dexieSetting of dexieSettings) {
|
||||
const sqliteSetting = sqliteSettings.find((s) => s.accountDid === dexieSetting.accountDid);
|
||||
const sqliteSetting = sqliteSettings.find((s) => s.accountDid == dexieSetting.accountDid);
|
||||
if (!sqliteSetting) {
|
||||
added.push(dexieSetting);
|
||||
} else if (!settingsEqual(dexieSetting, sqliteSetting)) {
|
||||
@@ -569,7 +569,7 @@ function compareSettings(
|
||||
|
||||
// Find settings that exist in SQLite but not in Dexie
|
||||
for (const sqliteSetting of sqliteSettings) {
|
||||
const dexieSetting = dexieSettings.find((s) => s.accountDid === sqliteSetting.accountDid);
|
||||
const dexieSetting = dexieSettings.find((s) => s.accountDid == sqliteSetting.accountDid);
|
||||
if (!dexieSetting) {
|
||||
missing.push(sqliteSetting);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user