mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	fix retrieving "many rows", closes #525
This commit is contained in:
		
							parent
							
								
									80fb89b794
								
							
						
					
					
						commit
						75ef766649
					
				
							
								
								
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "trilium", |   "name": "trilium", | ||||||
|   "version": "0.31.4", |   "version": "0.31.5", | ||||||
|   "lockfileVersion": 1, |   "lockfileVersion": 1, | ||||||
|   "requires": true, |   "requires": true, | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|  | |||||||
| @ -92,7 +92,7 @@ async function getManyRows(query, params) { | |||||||
|     let results = []; |     let results = []; | ||||||
| 
 | 
 | ||||||
|     while (params.length > 0) { |     while (params.length > 0) { | ||||||
|         const curParams = params.slice(0, Math.max(params.length, PARAM_LIMIT)); |         const curParams = params.slice(0, Math.min(params.length, PARAM_LIMIT)); | ||||||
|         params = params.slice(curParams.length); |         params = params.slice(curParams.length); | ||||||
| 
 | 
 | ||||||
|         let i = 1; |         let i = 1; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam