Skip to content
Snippets Groups Projects

Resolve "[0] [Newsletter] Gérer l'enregistrement d'objet de mail vide"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -85,7 +85,7 @@ func (dh *DataHandler) getMonthlyReport(year int, month int) (monthlyReport Mont
var mailSubject MailSubject
err = dh.sqlClient.Where("year = ? AND month = ?", year, month).First(&mailSubject).Error
if err != nil {
if err != nil || mailSubject.Subject == "" {
// Build default object
mailSubject.Subject = fmt.Sprintf("[Ecolyo] Votre bilan %s %v", getMonthNameWithPrep(month-1), year)
}
Loading