Răsfoiți Sursa

add the first argument

Yuki Takei 1 an în urmă
părinte
comite
334c1299c1
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      apps/app/src/server/service/g2g-transfer.ts

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

@@ -609,7 +609,7 @@ export class G2GTransferReceiverService implements Receiver {
   ): { [key: string]: ImportSettings; } {
     const importSettingsMap = {};
     innerFileStats.forEach(({ fileName, collectionName }) => {
-      const options = new GrowiArchiveImportOption(null, optionsMap[collectionName]);
+      const options = new GrowiArchiveImportOption(collectionName, null, optionsMap[collectionName]);
 
       if (collectionName === 'configs' && options.mode !== ImportMode.flushAndInsert) {
         throw new Error('`flushAndInsert` is only available as an import setting for configs collection');