mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-15 06:45:17 +01:00
fix #883
This commit is contained in:
parent
fa703e58b5
commit
ebc569fb93
@ -20,10 +20,10 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
||||||
|
"github.com/vmware/harbor/src/common/api"
|
||||||
"github.com/vmware/harbor/src/common/dao"
|
"github.com/vmware/harbor/src/common/dao"
|
||||||
"github.com/vmware/harbor/src/common/models"
|
"github.com/vmware/harbor/src/common/models"
|
||||||
"github.com/vmware/harbor/src/common/utils/log"
|
"github.com/vmware/harbor/src/common/utils/log"
|
||||||
"github.com/vmware/harbor/src/common/api"
|
|
||||||
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
@ -192,7 +192,8 @@ func (p *ProjectAPI) Delete() {
|
|||||||
if err := dao.AddAccessLog(models.AccessLog{
|
if err := dao.AddAccessLog(models.AccessLog{
|
||||||
UserID: userID,
|
UserID: userID,
|
||||||
ProjectID: p.projectID,
|
ProjectID: p.projectID,
|
||||||
RepoName: p.projectName,
|
RepoName: p.projectName + "/",
|
||||||
|
RepoTag: "N/A",
|
||||||
Operation: "delete",
|
Operation: "delete",
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
log.Errorf("failed to add access log: %v", err)
|
log.Errorf("failed to add access log: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user