فهرست منبع

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 => {