aboutsummaryrefslogtreecommitdiff
path: root/userapi/storage/accounts/sqlite3/profile_table.go
diff options
context:
space:
mode:
Diffstat (limited to 'userapi/storage/accounts/sqlite3/profile_table.go')
-rw-r--r--userapi/storage/accounts/sqlite3/profile_table.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/userapi/storage/accounts/sqlite3/profile_table.go b/userapi/storage/accounts/sqlite3/profile_table.go
index 4eeaf037..a67e892f 100644
--- a/userapi/storage/accounts/sqlite3/profile_table.go
+++ b/userapi/storage/accounts/sqlite3/profile_table.go
@@ -87,7 +87,7 @@ func (s *profilesStatements) prepare(db *sql.DB) (err error) {
func (s *profilesStatements) insertProfile(
ctx context.Context, txn *sql.Tx, localpart string,
) error {
- _, err := txn.Stmt(s.insertProfileStmt).ExecContext(ctx, localpart, "", "")
+ _, err := sqlutil.TxStmt(txn, s.insertProfileStmt).ExecContext(ctx, localpart, "", "")
return err
}