Added a json response to the uploadProfileImage api call

This commit is contained in:
hmhealey
2015-09-24 16:47:27 -04:00
parent 6a4a73c2d3
commit 7bb384b92d

View File

@@ -821,6 +821,9 @@ func uploadProfileImage(c *Context, w http.ResponseWriter, r *http.Request) {
Srv.Store.User().UpdateLastPictureUpdate(c.Session.UserId)
c.LogAudit("")
// write something as the response since jQuery expects a json response
w.Write([]byte("true"))
}
func updateUser(c *Context, w http.ResponseWriter, r *http.Request) {