Skip to content

Commit 265bb40

Browse files
committed
update MgoUserDao.go
1 parent 8480a16 commit 265bb40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/mgodao/MgoUserDao.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func GetAllUsersInfo() []models.MgoUser {
105105
func UpdateUserInfo(query bson.M, change bson.M) bool {
106106

107107
updat := func(c *mgo.Collection) error {
108-
return c.Update(updat, change)
108+
return c.Update(query, change)
109109
}
110110

111111
err := GetDBCollection("MgoUser", updat)

0 commit comments

Comments
 (0)