summaryrefslogtreecommitdiffstats
path: root/models/attachments.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/attachments.js')
-rw-r--r--models/attachments.js19
1 files changed, 11 insertions, 8 deletions
diff --git a/models/attachments.js b/models/attachments.js
index 71b30eee..893b5aca 100644
--- a/models/attachments.js
+++ b/models/attachments.js
@@ -1,6 +1,5 @@
Attachments = new FS.Collection('attachments', {
stores: [
-
// XXX Add a new store for cover thumbnails so we don't load big images in
// the general board view
new FS.Store.GridFS('attachments', {
@@ -25,7 +24,6 @@ Attachments = new FS.Collection('attachments', {
],
});
-
if (Meteor.isServer) {
Meteor.startup(() => {
Attachments.files._ensureIndex({ cardId: 1 });
@@ -78,13 +76,16 @@ if (Meteor.isServer) {
} else {
// Don't add activity about adding the attachment as the activity
// be imported and delete source field
- Attachments.update({
- _id: doc._id,
- }, {
- $unset: {
- source: '',
+ Attachments.update(
+ {
+ _id: doc._id,
},
- });
+ {
+ $unset: {
+ source: '',
+ },
+ }
+ );
}
});
@@ -107,3 +108,5 @@ if (Meteor.isServer) {
});
});
}
+
+export default Attachments;