mirror of https://github.com/gophish/gophish
fix #2189
parent
d2efb18ef1
commit
62589da69c
|
@ -606,6 +606,7 @@ func PostCampaign(c *Campaign, uid int64) error {
|
|||
recipientIndex++
|
||||
}
|
||||
}
|
||||
log.Info("Successfuly posted campaign",c.Id)
|
||||
return tx.Commit().Error
|
||||
}
|
||||
|
||||
|
@ -635,6 +636,7 @@ func DeleteCampaign(id int64) error {
|
|||
if err != nil {
|
||||
log.Error(err)
|
||||
}
|
||||
log.Info("Successfuly deleted campaign",id)
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -666,5 +668,6 @@ func CompleteCampaign(id int64, uid int64) error {
|
|||
if err != nil {
|
||||
log.Error(err)
|
||||
}
|
||||
log.Info("Campaign",c.Id,"ended successfully")
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -141,6 +141,7 @@ func PostTemplate(t *Template) error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
log.Info("Successfuly posted template",t.Id)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -174,6 +175,7 @@ func PutTemplate(t *Template) error {
|
|||
log.Error(err)
|
||||
return err
|
||||
}
|
||||
log.Info("Successfuly edited template",t.Id)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -193,5 +195,6 @@ func DeleteTemplate(id int64, uid int64) error {
|
|||
log.Error(err)
|
||||
return err
|
||||
}
|
||||
log.Info("Successfuly deleted template",id)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue