pull/2899/head
kiana-msz 2023-06-24 13:03:58 +03:30
parent d2efb18ef1
commit 62589da69c
2 changed files with 6 additions and 0 deletions

View File

@ -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
}

View File

@ -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
}