You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	Fixed note conflict sync
This commit is contained in:
		| @@ -6,6 +6,6 @@ | ||||
|   "helpers": [ | ||||
|     "helpers/**/*.js" | ||||
|   ], | ||||
|   "stopSpecOnExpectationFailure": false, | ||||
|   "stopSpecOnExpectationFailure": true, | ||||
|   "random": false | ||||
| } | ||||
|   | ||||
| @@ -174,6 +174,7 @@ class Synchronizer { | ||||
|  | ||||
| 					this.logSyncOperation(action, local, remote, reason); | ||||
|  | ||||
|  | ||||
| 					if (local.type_ == BaseModel.MODEL_TYPE_RESOURCE && (action == 'createRemote' || (action == 'itemConflict' && remote))) { | ||||
| 						let remoteContentPath = this.resourceDirName_ + '/' + local.id; | ||||
| 						let resourceContent = await Resource.content(local); | ||||
| @@ -223,6 +224,8 @@ class Synchronizer { | ||||
|  | ||||
| 							local.sync_time = time.unixMs(); | ||||
| 							await ItemClass.save(local, { autoTimestamp: false }); | ||||
| 						} else { | ||||
| 							await ItemClass.delete(local.id); | ||||
| 						} | ||||
|  | ||||
| 					} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user