fix UserInput.ApplyUpdate uses wrong column name for email field

This commit is contained in:
Dawid Wysokiński 2021-03-12 11:13:38 +01:00
parent a92079f315
commit d02d32ec5a
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ func (input *UserInput) ApplyUpdate(q *orm.Query) (*orm.Query, error) {
}
if input.Email != nil {
q = q.Set("name = ?", *input.Email)
q = q.Set("email = ?", *input.Email)
}
if input.Role != nil {