Ignoring error for no sending profile found. Fixes #189

pull/192/head
Jordan Wright 2016-03-03 18:47:10 -06:00
parent 0741e163f5
commit 625f4f8dc0
1 changed files with 6 additions and 3 deletions

View File

@ -180,7 +180,10 @@ func GetCampaign(id int64, uid int64) (Campaign, error) {
} }
err = db.Table("SMTP").Where("id=?", c.SMTPId).Find(&c.SMTP).Error err = db.Table("SMTP").Where("id=?", c.SMTPId).Find(&c.SMTP).Error
if err != nil { if err != nil {
// For now, since we just introduced the new sending profiles
// we'll return nil for the error
Logger.Printf("%s: sending profile not found for campaign\n", err) Logger.Printf("%s: sending profile not found for campaign\n", err)
err = nil
} }
return c, err return c, err
} }