Skip to content

Commit

Permalink
Fix failedcustomers export and increase the migration upload limit to…
Browse files Browse the repository at this point in the history
… 200.
  • Loading branch information
harshabacharaju committed Jun 6, 2022
1 parent a42c2c2 commit 36bf534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public async Task<bool> UploadNewCommerceMigrationsAsync()
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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public async Task<bool> ExportLegacySubscriptionsAsync()
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;
Expand Down

0 comments on commit 36bf534

Please sign in to comment.