touched up the database code to use transactions where necessary

This commit is contained in:
2025-11-28 23:01:56 -07:00
parent d73070f9b7
commit 7ce3bed15b
10 changed files with 376 additions and 132 deletions
+1 -1
View File
@@ -334,7 +334,7 @@ func ShowProfile(ctxt ui.AmContext) (string, any, error) {
}
// Gather the info on the current user.
user, err := database.AmGetUserByName(ctxt.URLParam("uname"))
user, err := database.AmGetUserByName(ctxt.URLParam("uname"), nil)
if err != nil {
ctxt.SetRC(http.StatusNotFound)
return ui.ErrorPage(ctxt, err)