From d9798492135d51d632384fd94e8f5bb302346b58 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Wed, 20 Sep 2017 20:13:29 -0400 Subject: [PATCH] OFX imports: Convert 'GetSecurity' to use existing SQL transaction --- imports.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imports.go b/imports.go index 40a932a..1c55f8b 100644 --- a/imports.go +++ b/imports.go @@ -174,7 +174,7 @@ func ofxImportHelper(r io.Reader, w http.ResponseWriter, user *User, accountid i split := new(Split) r := new(big.Rat) r.Neg(&imbalance) - security, err := GetSecurity(imbalanced_security, user.UserId) + security, err := GetSecurityTx(sqltransaction, imbalanced_security, user.UserId) if err != nil { sqltransaction.Rollback() WriteError(w, 999 /*Internal Error*/)