Skip to content

Commit

Permalink
fix: Check for Deleted Actors when updating from Stashdb (#1620)
Browse files Browse the repository at this point in the history
  • Loading branch information
toshski authored Feb 12, 2024
1 parent 97b7ec2 commit 8c13ed3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/externalreference/stashdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,10 @@ func UpdateXbvrActor(performer models.StashPerformer, xbvrActorID uint) {

changed := false
actor := models.Actor{ID: xbvrActorID}
db.Where(&actor).First(&actor)
err := db.Where(&actor).First(&actor).Error
if err != nil {
return
}

if len(performer.Images) > 0 {
if actor.ImageUrl != performer.Images[0].URL && !actor.CheckForSetImage() {
Expand Down

0 comments on commit 8c13ed3

Please sign in to comment.