mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-04-30 04:24:20 +02:00
fixed shouldUpdateFromImportSource() not called from importUniqueObject() (fixes #31)
This commit is contained in:
@@ -123,6 +123,11 @@ public extension BaseDataTransaction {
|
||||
|
||||
if let object = self.fetchOne(From(T), Where(uniqueIDKeyPath, isEqualTo: uniqueIDValue)) {
|
||||
|
||||
guard T.shouldUpdateFromImportSource(source, inTransaction: self) else {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
try object.updateFromImportSource(source, inTransaction: self)
|
||||
return object
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user