Kaynağa Gözat

refactor aws

itizawa 5 yıl önce
ebeveyn
işleme
0d732cd929
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/server/service/file-uploader/aws.js

+ 1 - 1
src/server/service/file-uploader/aws.js

@@ -126,7 +126,7 @@ module.exports = function(crowi) {
    * @return {stream.Readable} readable stream
    */
   lib.findDeliveryFile = async function(attachment) {
-    const s3 = S3Factory(this.getIsUploadable());
+    const s3 = S3Factory(this.getIsReadable());
     const awsConfig = getAwsConfig();
     const filePath = getFilePathOnStorage(attachment);