From e787187bb30226ec9b9d464151b76618453212fe Mon Sep 17 00:00:00 2001 From: mytja Date: Thu, 14 Nov 2024 15:06:22 +0100 Subject: [PATCH] fix issues encountered in production MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit we at BežiDev approve of such practices --- sharepoint.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharepoint.go b/sharepoint.go index 9ba5d46..0de1983 100644 --- a/sharepoint.go +++ b/sharepoint.go @@ -348,7 +348,7 @@ func (server *httpImpl) GetSharepointNotificationsGoroutine(accessToken string) } // ne posodabljaj za vsak drek - if noterr != nil || int(notificationResponse.Fields.Modified.Unix()) != notificationDb.ModifiedOn { + if noterr == nil && int(notificationResponse.Fields.Modified.Unix()) == notificationDb.ModifiedOn { continue } @@ -361,7 +361,7 @@ func (server *httpImpl) GetSharepointNotificationsGoroutine(accessToken string) } // ker discord je pač retarded - r := regexp.MustCompile(`\[(?P.*)\]\(.*\)`) + r := regexp.MustCompile(`\[(?P.*)]\(.*\)`) res := r.FindAllStringSubmatch(markdown, -1) for _, l := range res { if len(l) < 2 {