mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix lint
This commit is contained in:
		
							parent
							
								
									6b6b400847
								
							
						
					
					
						commit
						fba30e359a
					
				@ -26,7 +26,11 @@ module.exports = function (db) {
 | 
			
		||||
            .where('app_name', appName)
 | 
			
		||||
            .map(row => ({ count: row.count }))
 | 
			
		||||
            .then(rows => {
 | 
			
		||||
                return rows[0].count > 0 ? update(appName, strategies) : insert(appName, strategies);
 | 
			
		||||
                if (rows[0].count > 0) {
 | 
			
		||||
                    return update(appName, strategies);
 | 
			
		||||
                } else {
 | 
			
		||||
                    return insert(appName, strategies);
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user