Yuki Takei 1 год назад
Родитель
Сommit
b137c05b17
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      apps/app/src/server/service/g2g-transfer.ts

+ 6 - 2
apps/app/src/server/service/g2g-transfer.ts

@@ -83,6 +83,10 @@ export type IDataGROWIInfo = {
     customEndpoint?: string;
     /** GCS namespace */
     uploadNamespace?: string;
+    /** Azure account name */
+    accountName?: string;
+    /** Azure container name */
+    containerName?: string;
   };
 }
 
@@ -552,7 +556,7 @@ export class G2GTransferReceiverService implements Receiver {
     const fileUploadTotalLimit = fileUploadService.getFileUploadTotalLimit();
     const isWritable = await fileUploadService.isWritable();
 
-    const attachmentInfo = {
+    const attachmentInfo: IDataGROWIInfo['attachmentInfo'] = {
       type: configManager.getConfig('crowi', 'app:fileUploadType'),
       writable: isWritable,
       bucket: undefined,
@@ -682,7 +686,7 @@ export class G2GTransferReceiverService implements Receiver {
   public async updateFileUploadConfigs(fileUploadConfigs: FileUploadConfigs): Promise<void> {
     const { appService } = this.crowi;
 
-    await configManager.removeConfigs(Object.keys(fileUploadConfigs));
+    await configManager.removeConfigs(Object.keys(fileUploadConfigs) as ConfigKey[]);
     await configManager.updateConfigs(fileUploadConfigs);
     await this.crowi.setUpFileUpload(true);
     await appService.setupAfterInstall();