feat(webui): add "add missing mods" #804
@ -1092,6 +1092,7 @@ function doAddAllMods() {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        modsAll = Array.from(modsAll);
 | 
					        modsAll = Array.from(modsAll);
 | 
				
			||||||
 | 
					        // Batch to avoid PayloadTooLargeError
 | 
				
			||||||
        const batches = [];
 | 
					        const batches = [];
 | 
				
			||||||
        for (let i = 0; i < modsAll.length; i += 1000) {
 | 
					        for (let i = 0; i < modsAll.length; i += 1000) {
 | 
				
			||||||
            batches.push(modsAll.slice(i, i + 1000));
 | 
					            batches.push(modsAll.slice(i, i + 1000));
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user