diff options
Diffstat (limited to 'app/team.go')
-rw-r--r-- | app/team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/team.go b/app/team.go index f5235792f..aca99dd1e 100644 --- a/app/team.go +++ b/app/team.go @@ -1001,7 +1001,7 @@ func (a *App) SetTeamIconFromFile(teamId string, file multipart.File) *model.App path := "teams/" + teamId + "/teamIcon.png" - if err := a.WriteFile(buf.Bytes(), path); err != nil { + if _, err := a.WriteFile(buf, path); err != nil { return model.NewAppError("SetTeamIcon", "api.team.set_team_icon.write_file.app_error", nil, "", http.StatusInternalServerError) } |