Skip to content

Commit

Permalink
fix: Fix issue in CreateParticipantData (#582)
Browse files Browse the repository at this point in the history
* fix: Fix issue in CreateParticipantData

* fix: Removed unused import
  • Loading branch information
Joseph2910 authored Jan 17, 2025
1 parent af92acd commit e290db3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,9 @@ public async Task<bool> CreateParticipantEntry(ParticipantCsvRecord participantC
private bool ExecuteBulkCommand(List<SQLReturnModel> sqlCommands, Dictionary<string, object> commonParams)
{
var command = CreateCommand(commonParams);
foreach (var SqlCommand in sqlCommands)
foreach (var SqlCommand in sqlCommands.Where(SqlCommand => SqlCommand != null))
{
if (SqlCommand.Parameters != null)
{
AddParameters(SqlCommand.Parameters, command);
}
}

var transaction = BeginTransaction();
Expand Down

0 comments on commit e290db3

Please sign in to comment.