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:
parent
e34eed6ecf
commit
8c869cc5c2
@ -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 };
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user