Explorar o código

fixup! Ref: Attachments to use modern gridfs (rm localstore)

David Arnold %!s(int64=4) %!d(string=hai) anos
pai
achega
0f272b1e66
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/attachments.js

+ 1 - 1
models/attachments.js

@@ -31,7 +31,7 @@ const insertActivity = (fileObj, activityType) =>
 Attachments = new FilesCollection({
   debug: false, // Change to `true` for debugging
   collectionName: 'attachments',
-  allowClientCode: false,
+  allowClientCode: true,
   onAfterUpload: function onAfterUpload(fileRef) {
     createOnAfterUpload(attachmentBucket).call(this, fileRef);
     // If the attachment doesn't have a source field