diff options
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'); |