Skip to content

Commit 5ed36ba

Browse files
committed
fix bug and tests
1 parent 4d0f112 commit 5ed36ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/org_team.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ func UpdateTeam(t *Team, authChanged bool) (err error) {
331331
return ErrTeamAlreadyExist{t.OrgID, t.LowerName}
332332
}
333333

334-
if _, err = sess.Id(t.ID).Cols("description, lower_name").Update(t); err != nil {
334+
if _, err = sess.Id(t.ID).AllCols().Update(t); err != nil {
335335
return fmt.Errorf("update: %v", err)
336336
}
337337

models/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ func updateUserCols(e Engine, u *User, cols ...string) error {
894894
u.Website = base.TruncateString(u.Website, 255)
895895
u.Description = base.TruncateString(u.Description, 255)
896896

897-
_, err := x.Id(u.ID).Cols(cols...).Update(u)
897+
_, err := e.Id(u.ID).Cols(cols...).Update(u)
898898
return err
899899
}
900900

0 commit comments

Comments
 (0)