Skip to content

Commit

Permalink
fix issues encountered in production
Browse files Browse the repository at this point in the history
we at BežiDev approve of such practices
  • Loading branch information
mytja committed Nov 14, 2024
1 parent 2c211c5 commit e787187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sharepoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -361,7 +361,7 @@ func (server *httpImpl) GetSharepointNotificationsGoroutine(accessToken string)
}

// ker discord je pač retarded
r := regexp.MustCompile(`\[(?P<URL>.*)\]\(.*\)`)
r := regexp.MustCompile(`\[(?P<URL>.*)]\(.*\)`)
res := r.FindAllStringSubmatch(markdown, -1)
for _, l := range res {
if len(l) < 2 {
Expand Down

0 comments on commit e787187

Please sign in to comment.