Skip to content

Commit 1251a84

Browse files
committed
CQ - use async instead
1 parent c0b4ca3 commit 1251a84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

QueryDB/PostgreSQL/Adapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,12 @@ internal static async Task<bool> ExecuteTransactionAsync(List<string> sqlStateme
404404
await sqlCommand.ExecuteNonQueryAsync();
405405
}
406406
}
407-
transaction.Commit();
407+
await transaction.CommitAsync();
408408
return true;
409409
}
410410
catch (Exception ex)
411411
{
412-
transaction.Rollback();
412+
await transaction.RollbackAsync();
413413
Console.WriteLine($"Transaction rolled back due to error: {ex.Message}");
414414
return false;
415415
}

0 commit comments

Comments
 (0)