Skip to content

Commit

Permalink
upsert instead of inserting on relation set. If its already there pro…
Browse files Browse the repository at this point in the history
…cessing will get stuck.
  • Loading branch information
tiger5226 committed Jun 2, 2019
1 parent f799439 commit d24ca8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/processing/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func setTags(claim *model.Claim, tags []string) error {
return err
}
ct := &model.ClaimTag{ClaimID: claim.ClaimID, TagID: null.NewUint64(t.ID, true)}
err = claim.AddClaimTagsG(true, ct)
err = ct.UpsertG(boil.Infer(), boil.Infer())
if err != nil {
return err
}
Expand Down

0 comments on commit d24ca8b

Please sign in to comment.