summaryrefslogtreecommitdiffstats
path: root/models/avatars.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/avatars.js')
-rw-r--r--models/avatars.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/models/avatars.js b/models/avatars.js
index 53924ffb..2fda031d 100644
--- a/models/avatars.js
+++ b/models/avatars.js
@@ -1,7 +1,5 @@
Avatars = new FS.Collection('avatars', {
- stores: [
- new FS.Store.GridFS('avatars'),
- ],
+ stores: [new FS.Store.GridFS('avatars')],
filter: {
maxSize: 72000,
allow: {
@@ -18,10 +16,14 @@ Avatars.allow({
insert: isOwner,
update: isOwner,
remove: isOwner,
- download() { return true; },
+ download() {
+ return true;
+ },
fetch: ['userId'],
});
Avatars.files.before.insert((userId, doc) => {
doc.userId = userId;
});
+
+export default Avatars;