Marino Faggiana 7 年之前
父節點
當前提交
0bd2430dda
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      iOSClient/Networking/CCNetworking.m

+ 1 - 2
iOSClient/Networking/CCNetworking.m

@@ -1388,8 +1388,7 @@
         metadata = [[NCManageDatabase sharedInstance] copyTableMetadata:metadata];
         metadata = [[NCManageDatabase sharedInstance] copyTableMetadata:metadata];
         metadata.sessionTaskIdentifier = k_taskIdentifierDone;
         metadata.sessionTaskIdentifier = k_taskIdentifierDone;
         
         
-        [[NCManageDatabase sharedInstance] addMetadata:metadata activeUrl:_activeUrl];
-        [[NCManageDatabase sharedInstance] deleteMetadata:[NSPredicate predicateWithFormat:@"fileID = %@", sessionID]];
+        [[NCManageDatabase sharedInstance] updateMetadata:metadata activeUrl:_activeUrl];
     }
     }
     
     
     // ALL TASK DONE (PLAIN/CRYPTO)
     // ALL TASK DONE (PLAIN/CRYPTO)