mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 18:55:18 +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) {
|
||||
e := &event.Event{
|
||||
Type: event.EventTypeImagePush,
|
||||
Type: event.EventTypeImageDelete,
|
||||
Resource: &model.Resource{
|
||||
Type: model.ResourceTypeImage,
|
||||
Metadata: &model.ResourceMetadata{
|
||||
|
Loading…
Reference in New Issue
Block a user