mirror of
https://github.com/gophish/gophish
synced 2024-11-15 00:37:14 +00:00
add event when campaign is completed
This commit is contained in:
parent
097a6dd800
commit
2aa0a725e0
1 changed files with 5 additions and 0 deletions
|
@ -665,5 +665,10 @@ func CompleteCampaign(id int64, uid int64) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
}
|
}
|
||||||
|
// Add event
|
||||||
|
err = AddEvent(&Event{Message: "Campaign Completed"}, c.Id)
|
||||||
|
if err != nil {
|
||||||
|
log.Error(err)
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue