Implemented that customer only gets inserted if he/she hasn't been inserted yet (but should make actually no difference)
This commit is contained in:
parent
11b55a6ecc
commit
7dd1cd01b2
|
@ -23,7 +23,9 @@ class CoreDataBankingPersistence: IBankingPersistence, IRemitteeSearcher {
|
|||
do {
|
||||
let mapped = mapper.map(customer, context)
|
||||
|
||||
if customer.technicalId.isCoreDataId == false { // an unpersisted bank (but check should not be necessary)
|
||||
context.insert(mapped)
|
||||
}
|
||||
|
||||
try context.save()
|
||||
|
||||
|
|
Loading…
Reference in New Issue