mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix 0.46 regression to set up sync from client, fixes #1742
This commit is contained in:
		| @@ -84,7 +84,15 @@ function exec(opts) { | |||||||
|                 }); |                 }); | ||||||
|             }); |             }); | ||||||
|  |  | ||||||
|             request.end(opts.body); |             let payload; | ||||||
|  |  | ||||||
|  |             if (opts.body) { | ||||||
|  |                 payload = typeof opts.body === 'object' | ||||||
|  |                     ? JSON.stringify(opts.body) | ||||||
|  |                     : opts.body; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             request.end(payload); | ||||||
|         } |         } | ||||||
|         catch (e) { |         catch (e) { | ||||||
|             reject(generateError(opts, e.message)); |             reject(generateError(opts, e.message)); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user