Skip to content
Snippets Groups Projects
Commit a036e902 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

checking valid purchase amount from config

parent 6fded599
No related branches found
No related tags found
No related merge requests found
...@@ -164,7 +164,7 @@ router.use( ...@@ -164,7 +164,7 @@ router.use(
.optional({ checkFalsy: true }) .optional({ checkFalsy: true })
.isInt() .isInt()
.toInt() .toInt()
.isIn([300, 600, 900, 1200, 1800, 3600]), .isIn(config.get("price.purchasable")),
(req, res, next) => { (req, res, next) => {
// Input Validation // Input Validation
const errors = validationResult(req); const errors = validationResult(req);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment