diff --git a/pkg/externalreference/stashdb.go b/pkg/externalreference/stashdb.go index 31d8572a9..149fa1c02 100644 --- a/pkg/externalreference/stashdb.go +++ b/pkg/externalreference/stashdb.go @@ -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() {