From daf1fb519e70ad71f8356818eaa38781c610c32b Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Thu, 23 Nov 2023 13:09:39 +0100 Subject: [PATCH] tested a different way of configuring send mail --- server/backend/cron/feedback_email.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/backend/cron/feedback_email.go b/server/backend/cron/feedback_email.go index c1ffa02f..0f4354c1 100644 --- a/server/backend/cron/feedback_email.go +++ b/server/backend/cron/feedback_email.go @@ -127,7 +127,7 @@ func (c *CronService) feedbackEmailCron() error { log.Tracef("sending feedback %d to %v successfull", i, feedback.Recipient) // prevent the message being send the next time around - if err := c.db.Find(model.Feedback{}, "id = ?", feedback.Id).Update("processed", "true").Error; err != nil { + if err := c.db.Find(model.Feedback{}, "id = ?", feedback.Id).Update("processed", true).Error; err != nil { log.WithError(err).Error("could not prevent mail from being send again") } }