Support columns arg in UpdateUser().

This commit is contained in:
Gucheng Wang
2021-12-11 14:45:08 +08:00
parent cc47f3b65d
commit 6ba658ac60
3 changed files with 16 additions and 6 deletions

View File

@ -198,7 +198,7 @@ func (c *ApiController) UploadResource() {
}
user.Avatar = fileUrl
object.UpdateUser(user.GetId(), user)
object.UpdateUser(user.GetId(), user, []string{"avatar"})
case "termsOfUse":
applicationId := fmt.Sprintf("admin/%s", parent)
app := object.GetApplication(applicationId)