Skip to content
Snippets Groups Projects
Commit e78bc987 authored by Adam Harrison-Fuller's avatar Adam Harrison-Fuller
Browse files

Only increment the issues_created counter if we create an issue

parent 86a9aad7
Branches
Tags
No related merge requests found
......@@ -108,9 +108,8 @@ func (feed Feed) checkFeed(db *gorm.DB, gitlabClient *gitlab.Client) {
} else {
fmt.Printf("Created Gitlab Issue '%s' in project: %d' \n", item.Title, feed.GitlabProjectID)
db.Create(&SyncedItems{UUID: item.GUID, Feed: feed.ID})
issuesCreatedCounter.Inc()
}
issuesCreatedCounter.Inc()
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment