add event when campaign is completed

This commit is contained in:
sylflo 2021-08-11 22:17:18 +02:00 committed by Sylvain Chateau
parent 097a6dd800
commit 2aa0a725e0

View file

@ -665,5 +665,10 @@ func CompleteCampaign(id int64, uid int64) error {
if err != nil {
log.Error(err)
}
// Add event
err = AddEvent(&Event{Message: "Campaign Completed"}, c.Id)
if err != nil {
log.Error(err)
}
return err
}