1
Fork 0

Proof of concept for variable album covers - GQL playground working.

This commit is contained in:
Peter - Ubuntu dual boot 2021-09-17 15:35:01 +01:00
parent 193e05e7e0
commit 6408b2c0d0
2 changed files with 1 additions and 4 deletions

View File

@ -174,7 +174,6 @@ func (r *albumResolver) Thumbnail(ctx context.Context, obj *models.Album) (*mode
}
}
// err := r.Database.Raw(`
// WITH recursive sub_albums AS (
// SELECT * FROM albums AS root WHERE id = ?
@ -289,8 +288,6 @@ func (r *mutationResolver) SetAlbumCoverID(ctx context.Context, albumID int, cov
return nil, errors.New("forbidden")
}
if err := r.Database.Model(&album).Update("cover_id", coverID).Error; err != nil {
return nil, err
}