diff --git a/models/campaign.go b/models/campaign.go index 4775276d..827d0d02 100644 --- a/models/campaign.go +++ b/models/campaign.go @@ -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 }