Save dupes to prevent retries
This commit is contained in:
parent
7e4744503f
commit
9d38176eab
5
main.go
5
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue