From 4bd9a73c137850325ff617ed877acd9060ca8cd1 Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Fri, 6 May 2022 09:50:20 +0200 Subject: [PATCH] Fix database locked --- userapi/storage/sqlite3/accounts_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userapi/storage/sqlite3/accounts_table.go b/userapi/storage/sqlite3/accounts_table.go index b433e47a0..7a700a306 100644 --- a/userapi/storage/sqlite3/accounts_table.go +++ b/userapi/storage/sqlite3/accounts_table.go @@ -140,7 +140,7 @@ func (s *accountsStatements) InsertAccount( ctx context.Context, txn *sql.Tx, localpart, hash, appserviceID, policyVersion string, accountType api.AccountType, ) (*api.Account, error) { createdTimeMS := time.Now().UnixNano() / 1000000 - stmt := s.insertAccountStmt + stmt := sqlutil.TxStmt(txn, s.insertAccountStmt) var err error if accountType != api.AccountTypeAppService {