forked from MapComplete/MapComplete
		
	Scripts: don't run generateLayouts in sync to avoid hitting the same servers multiple times
This commit is contained in:
		
							parent
							
								
									ea000d817e
								
							
						
					
					
						commit
						ee47fd6ada
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -527,7 +527,9 @@ class GenerateLayouts extends Script {
 | 
				
			||||||
            (config) => (theme !== undefined && config.id === theme) || !blacklist.has(config.id)
 | 
					            (config) => (theme !== undefined && config.id === theme) || !blacklist.has(config.id)
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        await Promise.all(configsFiltered.map((config) => this.createThemeFor(config)))
 | 
					        for (const config of configsFiltered) {
 | 
				
			||||||
 | 
					            await this.createThemeFor(config)
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const { manifest } = await this.createManifest(
 | 
					        const { manifest } = await this.createManifest(
 | 
				
			||||||
            new ThemeConfig({
 | 
					            new ThemeConfig({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue