Override hash since it doesn’t need to include everything in this case.

This commit is contained in:
Brent Simmons committed 2025-11-06 14:52:41 -08:00
1 parent f09637976a
commit 31eff7251b
1 file changed
+6 -1
@@ -40,6 +40,11 @@ public struct SyncStatus: Hashable, Equatable {
}
public func databaseDictionary() -> DatabaseDictionary {
return [DatabaseKey.articleID: articleID, DatabaseKey.key: key.rawValue, DatabaseKey.flag: flag, DatabaseKey.selected: selected]
[DatabaseKey.articleID: articleID, DatabaseKey.key: key.rawValue, DatabaseKey.flag: flag, DatabaseKey.selected: selected]
}
public func hash(into hasher: inout Hasher) {
hasher.combine(articleID)
hasher.combine(key)
}
}