소스 검색

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

David Arnold 4 년 전
부모
커밋
0f272b1e66
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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