diff options
Diffstat (limited to 'models/attachments.js')
-rw-r--r-- | models/attachments.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/models/attachments.js b/models/attachments.js index 40adda49..560bec99 100644 --- a/models/attachments.js +++ b/models/attachments.js @@ -16,9 +16,10 @@ Attachments = new FS.Collection('attachments', { beforeWrite: (fileObj) => { if (!fileObj.isImage()) { return { - type: 'application/octet-stream' + type: 'application/octet-stream', }; } + return {}; }, }), ], @@ -70,7 +71,7 @@ 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 : '' } } ); } }); |