mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Fix batch performer panic (#3456)
This commit is contained in:
committed by
WithoutPants
parent
96ce260a40
commit
ccbe3c4e92
@@ -191,8 +191,14 @@ func (t *StashBoxPerformerTagTask) stashBoxPerformerTag(ctx context.Context) {
|
||||
}
|
||||
} else if t.name != nil && performer.Name != nil {
|
||||
currentTime := time.Now()
|
||||
var aliases []string
|
||||
if performer.Aliases != nil {
|
||||
aliases = stringslice.FromString(*performer.Aliases, ",")
|
||||
} else {
|
||||
aliases = []string{}
|
||||
}
|
||||
newPerformer := models.Performer{
|
||||
Aliases: models.NewRelatedStrings(stringslice.FromString(*performer.Aliases, ",")),
|
||||
Aliases: models.NewRelatedStrings(aliases),
|
||||
Birthdate: getDate(performer.Birthdate),
|
||||
CareerLength: getString(performer.CareerLength),
|
||||
Country: getString(performer.Country),
|
||||
|
||||
Reference in New Issue
Block a user