mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 06:38:19 +01:00
Set Event.Type value to event.EventTypeImageDelete instead of event.EventTypeImagePush when deleting
Signed-off-by: guanxiatao <guanxiatao@corp.netease.com>
This commit is contained in:
parent
8cd155088d
commit
b40ee6edc9
@ -332,7 +332,7 @@ func (ra *RepositoryAPI) Delete() {
|
|||||||
|
|
||||||
go func(tag string) {
|
go func(tag string) {
|
||||||
e := &event.Event{
|
e := &event.Event{
|
||||||
Type: event.EventTypeImagePush,
|
Type: event.EventTypeImageDelete,
|
||||||
Resource: &model.Resource{
|
Resource: &model.Resource{
|
||||||
Type: model.ResourceTypeImage,
|
Type: model.ResourceTypeImage,
|
||||||
Metadata: &model.ResourceMetadata{
|
Metadata: &model.ResourceMetadata{
|
||||||
|
Loading…
Reference in New Issue
Block a user