mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Don't set default studio image (#887)
This commit is contained in:
@@ -19,14 +19,12 @@ func (r *mutationResolver) StudioCreate(ctx context.Context, input models.Studio
|
||||
var imageData []byte
|
||||
var err error
|
||||
|
||||
if input.Image == nil {
|
||||
input.Image = &models.DefaultStudioImage
|
||||
}
|
||||
|
||||
// Process the base 64 encoded image string
|
||||
_, imageData, err = utils.ProcessBase64Image(*input.Image)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
if input.Image != nil {
|
||||
_, imageData, err = utils.ProcessBase64Image(*input.Image)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
// Populate a new studio from the input
|
||||
|
||||
Reference in New Issue
Block a user