diff options
author | Simon Bartlett <simon@securitycompass.com> | 2015-02-03 21:58:46 -0500 |
---|---|---|
committer | Simon Bartlett <simon@securitycompass.com> | 2015-02-03 21:58:46 -0500 |
commit | b98c950e6c5c0c0ec48fc5680089ed9b879bfae1 (patch) | |
tree | eb117d5700cb751f22901bdc468c331217547690 /app/core/files.js | |
parent | b2e2d33b5acd9c2f3b3986d4aca4662bb53df272 (diff) | |
download | lets-chat-b98c950e6c5c0c0ec48fc5680089ed9b879bfae1.zip lets-chat-b98c950e6c5c0c0ec48fc5680089ed9b879bfae1.tar.gz lets-chat-b98c950e6c5c0c0ec48fc5680089ed9b879bfae1.tar.bz2 |
Minor fixes
Diffstat (limited to 'app/core/files.js')
-rw-r--r-- | app/core/files.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/core/files.js b/app/core/files.js index c91edbc..c15d04e 100644 --- a/app/core/files.js +++ b/app/core/files.js @@ -67,6 +67,8 @@ FileManager.prototype.create = function(options, cb) { }; FileManager.prototype.list = function(options, cb) { + options = options || {}; + var File = mongoose.model('File'), User = mongoose.model('User'); |