fix(backend): use to-be-set custom preferences when validating fields, remove constants

This commit is contained in:
Sam 2023-04-21 16:35:13 +02:00
parent 6dd3478ff9
commit 5594463a09
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
4 changed files with 47 additions and 52 deletions

View file

@ -144,7 +144,7 @@ func (bot *Bot) userPronouns(w http.ResponseWriter, r *http.Request, ev *discord
var favs []db.FieldEntry
for _, e := range field.Entries {
if e.Status == db.StatusFavourite {
if e.Status == "favourite" {
favs = append(favs, e)
}
}