浏览代码

review automatic upload

Marino Faggiana 8 年之前
父节点
当前提交
59d324818b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      iOSClient/FileSystem/CCCoreData.m

+ 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];