This commit is contained in:
Wenkai Yin 2017-05-10 13:11:09 +08:00
parent 6cf545f304
commit 01066c72b5

View File

@ -119,6 +119,7 @@ func (p *ProjectAPI) Post() {
return return
} }
go func() {
user, err := dao.GetUser(models.User{ user, err := dao.GetUser(models.User{
UserID: p.userID, UserID: p.userID,
}) })
@ -140,6 +141,7 @@ func (p *ProjectAPI) Post() {
log.Errorf("failed to add access log: %v", err) log.Errorf("failed to add access log: %v", err)
p.CustomAbort(http.StatusInternalServerError, http.StatusText(http.StatusInternalServerError)) p.CustomAbort(http.StatusInternalServerError, http.StatusText(http.StatusInternalServerError))
} }
}()
p.Redirect(http.StatusCreated, strconv.FormatInt(projectID, 10)) p.Redirect(http.StatusCreated, strconv.FormatInt(projectID, 10))
} }