Yuki Takei %!s(int64=2) %!d(string=hai) anos
pai
achega
9874cf8813

+ 1 - 1
apps/app/src/server/service/file-uploader/aws.ts

@@ -144,7 +144,7 @@ module.exports = (crowi) => {
     return !configManager.getConfig('crowi', 'aws:referenceFileWithRelayMode');
     return !configManager.getConfig('crowi', 'aws:referenceFileWithRelayMode');
   };
   };
 
 
-  (lib as any).respond = async function(res, attachment: IAttachmentDocument) {
+  lib.respond = async function(res, attachment: IAttachmentDocument) {
     if (!lib.getIsUploadable()) {
     if (!lib.getIsUploadable()) {
       throw new Error('AWS is not configured.');
       throw new Error('AWS is not configured.');
     }
     }

+ 1 - 1
apps/app/src/server/service/file-uploader/azure.ts

@@ -141,7 +141,7 @@ module.exports = (crowi) => {
     return !configManager.getConfig('crowi', 'azure:referenceFileWithRelayMode');
     return !configManager.getConfig('crowi', 'azure:referenceFileWithRelayMode');
   };
   };
 
 
-  (lib as any).respond = async function(res, attachment) {
+  lib.respond = async function(res, attachment) {
     const containerClient = await getContainerClient();
     const containerClient = await getContainerClient();
     const filePath = getFilePathOnStorage(attachment);
     const filePath = getFilePathOnStorage(attachment);
     const blockBlobClient: BlockBlobClient = await containerClient.getBlockBlobClient(filePath);
     const blockBlobClient: BlockBlobClient = await containerClient.getBlockBlobClient(filePath);