summaryrefslogtreecommitdiffstats
path: root/app/core/files.js
diff options
context:
space:
mode:
authorSimon Bartlett <simon@securitycompass.com>2015-02-03 21:58:46 -0500
committerSimon Bartlett <simon@securitycompass.com>2015-02-03 21:58:46 -0500
commitb98c950e6c5c0c0ec48fc5680089ed9b879bfae1 (patch)
treeeb117d5700cb751f22901bdc468c331217547690 /app/core/files.js
parentb2e2d33b5acd9c2f3b3986d4aca4662bb53df272 (diff)
downloadlets-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.js2
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');