Use the right Id when loading unsplash thumbnails

This commit is contained in:
kolaente 2020-05-31 22:08:18 +02:00
parent 6b6b0af819
commit 0b154936e7
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -20,7 +20,7 @@ export default class BackgroundUnsplashService extends AbstractService {
thumb(model) {
return this.http({
url: `/backgrounds/unsplash/images/${model.url}/thumb`,
url: `/backgrounds/unsplash/images/${model.id}/thumb`,
method: 'GET',
responseType: 'blob',
})