Marino Faggiana 8 жил өмнө
parent
commit
59d324818b

+ 1 - 1
iOSClient/FileSystem/CCCoreData.m

@@ -1506,7 +1506,7 @@
     NSManagedObjectContext *context = [NSManagedObjectContext MR_context];
     
     // Delete record if exists
-    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(account == %@) AND (fileName == %@) AND (serverUrl == %@) AND (selector == %@)", account, metadataNet.fileName, metadataNet.serverUrl, metadataNet.selector];
+    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(account == %@) AND (identifier == %@)", account, metadataNet.identifier];
     [TableAutomaticUpload MR_deleteAllMatchingPredicate:predicate inContext:context];
     
     TableAutomaticUpload *record = [TableAutomaticUpload MR_createEntityInContext:context];