Fix failedcustomers export and increase the migration upload limit to 200.
This commit is contained in:
Родитель
a42c2c25d2
Коммит
36bf534228
|
@ -38,9 +38,9 @@ internal class NewCommerceMigrationProvider : INewCommerceMigrationProvider
|
|||
using var csvReader = new CsvReader(fileReader, CultureInfo.InvariantCulture, leaveOpen: true);
|
||||
var inputMigrationRequests = csvReader.GetRecords<MigrationRequest>().ToList();
|
||||
|
||||
if (inputMigrationRequests.Count > 100)
|
||||
if (inputMigrationRequests.Count > 200)
|
||||
{
|
||||
Console.WriteLine($"There are too many migration requests in the file: {fileName}. The maximum limit for migration uploads per file is 100. Please fix the input file to continue...");
|
||||
Console.WriteLine($"There are too many migration requests in the file: {fileName}. The maximum limit for migration uploads per file is 200. Please fix the input file to continue...");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -76,8 +76,8 @@ internal class SubscriptionProvider : ISubscriptionProvider
|
|||
if (failedCustomersBag.Count > 0)
|
||||
{
|
||||
Console.WriteLine("Exporting failed customers");
|
||||
await csvProvider.ExportCsv(failedCustomersBag, "failedCustomers.csv");
|
||||
Console.WriteLine($"Exported failed customers at {Environment.CurrentDirectory}/failedCustomers.csv");
|
||||
await csvProvider.ExportCsv(failedCustomersBag, $"{Constants.OutputFolderPath}/failedCustomers.csv");
|
||||
Console.WriteLine($"Exported failed customers at {Environment.CurrentDirectory}/{Constants.OutputFolderPath}/failedCustomers.csv");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче