소스 검색

Fixup(ostrio-files): wrong export

David Arnold 4 년 전
부모
커밋
9b1ff4dd6d
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      models/lib/fsHooks/createInterceptDownload.js
  2. 1 1
      models/lib/fsHooks/createOnAfterRemove.js

+ 1 - 1
models/lib/fsHooks/createInterceptDownload.js

@@ -1,6 +1,6 @@
 import { createObjectId } from '../grid/createObjectId';
 
-const createInterceptDownload = bucket =>
+export const createInterceptDownload = bucket =>
   function interceptDownload(http, file, versionName) {
     const { gridFsFileId } = file.versions[versionName].meta || {};
     if (gridFsFileId) {

+ 1 - 1
models/lib/fsHooks/createOnAfterRemove.js

@@ -1,6 +1,6 @@
 import { createObjectId } from '../grid/createObjectId';
 
-const createOnAfterRemove = bucket =>
+export const createOnAfterRemove = bucket =>
   function onAfterRemove(files) {
     files.forEach(file => {
       Object.keys(file.versions).forEach(versionName => {