Tell IDE to shut up about an update without where of a single record

This commit is contained in:
jordi fita mas 2023-01-31 15:41:05 +01:00
parent 9f17f55547
commit e56e08a68f
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ func ProfileHandler() http.Handler {
return
}
if ok := form.Validate(locale); ok {
//goland:noinspection SqlWithoutWhere
cookie := conn.MustGetText(r.Context(), "", "update user_profile set name = $1, email = $2, lang_tag = $3 returning build_cookie()", form.Name.Value, form.Email.Value, form.Language.Selected)
setSessionCookie(w, cookie)
if form.Password.Value != "" {