1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

Add required flag to strategy parameters

This commit is contained in:
ivaosthu 2016-12-12 16:56:52 +01:00
parent e34eed6ecf
commit 8c869cc5c2

View File

@ -10,7 +10,7 @@ exports.up = function (db, callback) {
.map(({ name, parameters_template }) => { .map(({ name, parameters_template }) => {
const parameters = []; const parameters = [];
Object.keys(parameters_template || {}).forEach(p => { 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 }; return { name, parameters };
}) })