Save dupes to prevent retries

This commit is contained in:
ekzyis 2024-03-13 14:13:19 +01:00
parent 7e4744503f
commit 9d38176eab
1 changed files with 5 additions and 0 deletions

View File

@ -83,6 +83,11 @@ func main() {
if errors.As(err, &dupesErr) {
// SendDupesErrorToDiscord(story.ID, dupesErr)
log.Println(dupesErr)
// save dupe in db to prevent retries
parentId := dupesErr.Dupes[0].Id
if err := SaveSnItem(parentId, story.ID); err != nil {
SendErrorToDiscord(err)
}
continue
}
SendErrorToDiscord(err)