mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Add required flag to strategy parameters
This commit is contained in:
		
							parent
							
								
									e34eed6ecf
								
							
						
					
					
						commit
						8c869cc5c2
					
				@ -10,7 +10,7 @@ exports.up = function (db, callback) {
 | 
			
		||||
              .map(({ name, parameters_template }) => {
 | 
			
		||||
                  const parameters = [];
 | 
			
		||||
                  Object.keys(parameters_template || {}).forEach(p => {
 | 
			
		||||
                      parameters.push({ name: p, type: parameters_template[p], description: '' });
 | 
			
		||||
                      parameters.push({ name: p, type: parameters_template[p], description: '', required: false });
 | 
			
		||||
                  });
 | 
			
		||||
                  return { name, parameters };
 | 
			
		||||
              })
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user