removed console log

This commit is contained in:
bill bittner 2018-07-06 17:39:07 -07:00
parent 93d23a3721
commit fd4f745dc1

View file

@ -1,7 +1,6 @@
const logger = require('winston');
const validateFileTypeAndSize = (file) => {
logger.debug('FILE:', file);
// check file type and size
switch (file.type) {
case 'image/jpeg':
@ -26,9 +25,8 @@ const validateFileTypeAndSize = (file) => {
break;
default:
logger.debug('publish > file validation > unrecognized file type');
throw new Error('The ' + file.type + ' content type is not supported. Only, .jpeg, .png, .gif, and .mp4 files are currently supported.');
throw new Error('The ' + file.type + ' content type is not supported. Only, .jpg, .png, .gif, and .mp4 files are currently supported.');
}
// check file name
return file;
};