Skip to content

Commit 6699473

Browse files
committed
Fix error
1 parent 90fc390 commit 6699473

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

core/entryController.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,6 @@ exports.createEntry = function (req, res) {
261261
out['message'] = 'Limit of 500 characters for this field exceeded';
262262
}
263263
}
264-
if (field === 'anon') {
265-
fields[[field]] = validator.toBoolean(validator.trim(value));
266-
if (!validator.isBoolean(String(value))) {
267-
errorFields.push('anon');
268-
out['message'] = 'No valid value';
269-
}
270-
}
271264

272265
}).on('file', function (field, file) {
273266
files.push({

0 commit comments

Comments
 (0)