Skip to content

Commit

Permalink
feat: enforce range on random_number optional field
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnEFerguson committed Jan 28, 2021
1 parent aa2d783 commit e3ab682
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/api/main/routes/configurations.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,14 @@ const numericCriteriaFieldsNotRequired = await db.sequelize.query(
})
names.add(criteria.name)
}
});

});

fieldNames.push({
name: "random_number",
required: false,
dataType: "NUMBER",
possibleValues: { min: 0, max: 100000 }
})



Expand Down

0 comments on commit e3ab682

Please sign in to comment.