diff --git a/go.mod b/go.mod index f31f7cb..acbf5d6 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/ChaoticByte/wid-notifier -go 1.22 +go 1.24 diff --git a/mail.go b/mail.go index e4c5890..07477ba 100644 --- a/mail.go +++ b/mail.go @@ -66,7 +66,7 @@ func (r Recipient) sendNotices(notices []WidNotice, template MailTemplate, auth logger.error("Could not create mail from template") logger.error(err) } - // serialize & send mail + // serialize mail data = mailContent.serializeValidMail(smtpConfig.From, r.Address) // add to cache (*cache)[n.Uuid] = data diff --git a/notice.go b/notice.go index 8967d20..758d85d 100644 --- a/notice.go +++ b/notice.go @@ -25,16 +25,6 @@ type WidNotice struct { PortalUrl string } -// func (n WidNotice) serialized() ([]byte, error) { -// return json.Marshal(n) -// } - -// func NewWidNoticeFromJSON(data []byte) (WidNotice, error) { -// n := WidNotice{} -// err := json.Unmarshal(data, &n) -// return n, err -// } - func noticeSliceContains(notices []WidNotice, notice WidNotice) bool { for _, x := range notices { if x.Uuid == notice.Uuid { diff --git a/persistent_data.go b/persistent_data.go index 182c269..f3ce9ce 100644 --- a/persistent_data.go +++ b/persistent_data.go @@ -18,4 +18,4 @@ func NewPersistentData(c Config) PersistentData { d.LastPublished[e.Id] = time.Now().Add(-time.Hour * 24) // a day ago } return d -} \ No newline at end of file +}