diff options
author | Houssam Haidar <houssam@sdelements.com> | 2016-04-03 20:04:43 -0500 |
---|---|---|
committer | Houssam Haidar <houssam@sdelements.com> | 2016-04-03 20:04:43 -0500 |
commit | 459229499d861efac7bda10c99f74c46f94a1c22 (patch) | |
tree | 2183cee64ed074a9708a8c9bb276944b69c95d92 /app/core/files.js | |
parent | 9dcc1dfb51dc71efcf1389b0cf185d109453fa5b (diff) | |
download | lets-chat-459229499d861efac7bda10c99f74c46f94a1c22.zip lets-chat-459229499d861efac7bda10c99f74c46f94a1c22.tar.gz lets-chat-459229499d861efac7bda10c99f74c46f94a1c22.tar.bz2 |
Fix lodash and multer issues
Diffstat (limited to 'app/core/files.js')
-rw-r--r-- | app/core/files.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/core/files.js b/app/core/files.js index aade909..ed989f0 100644 --- a/app/core/files.js +++ b/app/core/files.js @@ -38,7 +38,7 @@ FileManager.prototype.create = function(options, cb) { if (settings.restrictTypes && settings.allowedTypes && settings.allowedTypes.length && - !_.include(settings.allowedTypes, options.file.mimetype)) { + !_.includes(settings.allowedTypes, options.file.mimetype)) { return cb('The MIME type ' + options.file.mimetype + ' is not allowed'); } |