Return an SMTP object via GET /campaigns

pull/169/head
William Woodson 2016-02-27 21:12:18 -06:00
parent c066fa9d52
commit abec9adfba
1 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,10 @@ func GetCampaigns(uid int64) ([]Campaign, error) {
if err != nil {
Logger.Println(err)
}
err = db.Table("SMTP").Where("id=?", cs[i].SMTPId).Find(&cs[i].SMTP).Error
if err != nil {
Logger.Println(err)
}
}
return cs, err
}