Skip to content

Commit

Permalink
[CON-3299] Make transaction optional
Browse files Browse the repository at this point in the history
  • Loading branch information
cofaulco committed Apr 14, 2021
1 parent 605507f commit 87a968f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SFA.DAS.EmployerFinance/Data/PayeRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public async Task<PayeSchemes> GetGovernmentGatewayOnlySchemesByEmployerId(long
var result = await _db.Value.Database.Connection.QueryAsync<Paye>(
sql: "[employer_financial].[GetPayeSchemesAddedByGovernmentGateway_ByAccountId]",
param: parameters,
transaction: _db.Value.Database.CurrentTransaction.UnderlyingTransaction,
transaction: _db.Value.Database.CurrentTransaction?.UnderlyingTransaction,
commandType: CommandType.StoredProcedure);

return new PayeSchemes
Expand Down

0 comments on commit 87a968f

Please sign in to comment.