mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 07:27:55 +00:00
update
This commit is contained in:
parent
6cf545f304
commit
01066c72b5
|
@ -119,6 +119,7 @@ func (p *ProjectAPI) Post() {
|
|||
return
|
||||
}
|
||||
|
||||
go func() {
|
||||
user, err := dao.GetUser(models.User{
|
||||
UserID: p.userID,
|
||||
})
|
||||
|
@ -140,6 +141,7 @@ func (p *ProjectAPI) Post() {
|
|||
log.Errorf("failed to add access log: %v", err)
|
||||
p.CustomAbort(http.StatusInternalServerError, http.StatusText(http.StatusInternalServerError))
|
||||
}
|
||||
}()
|
||||
|
||||
p.Redirect(http.StatusCreated, strconv.FormatInt(projectID, 10))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user