From e3ab6827816bafb4f315d53a2d450188bf1cd691 Mon Sep 17 00:00:00 2001 From: John Everett Ferguson Date: Wed, 27 Jan 2021 19:51:59 -0500 Subject: [PATCH] feat: enforce range on random_number optional field --- src/api/main/routes/configurations.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/api/main/routes/configurations.js b/src/api/main/routes/configurations.js index 092f6637..fdd8467c 100644 --- a/src/api/main/routes/configurations.js +++ b/src/api/main/routes/configurations.js @@ -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 } + })