Skip to content

Commit 66c6a07

Browse files
committed
hardcode maximum number of workItems per work as 100
1 parent f778c99 commit 66c6a07

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/routes/workItems/create.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44
import validate from 'express-validation';
55
import _ from 'lodash';
6-
import config from 'config';
76
import Joi from 'joi';
87

98
import models from '../../models';
@@ -105,9 +104,9 @@ module.exports = [
105104
})
106105
.then((productCount) => {
107106
// make sure number of products of per phase <= max value
108-
if (productCount >= config.maxPhaseProductCount) {
107+
if (productCount >= 100) {
109108
const err = new Error('the number of products per phase cannot exceed ' +
110-
`${config.maxPhaseProductCount}`);
109+
`${100}`);
111110
err.status = 400;
112111
throw err;
113112
}

0 commit comments

Comments
 (0)