adjust player artwork resolution and query stale time

This commit is contained in:
Violet Caulfield
2025-01-23 07:01:15 -06:00
parent 58860fc360
commit f2219d22aa
2 changed files with 4 additions and 6 deletions
+1 -3
View File
@@ -10,9 +10,7 @@ export function fetchItemImage(itemId: string, imageType?: ImageType, size?: num
.getItemImage({
itemId,
imageType: imageType ? imageType : ImageType.Primary,
format: ImageFormat.Jpg,
height: size ?? queryConfig.images.height,
width: size ?? queryConfig.images.width
...queryConfig.playerArtwork,
}, {
responseType: 'blob'
})
+3 -3
View File
@@ -20,9 +20,9 @@ export const queryConfig = {
format: ImageFormat.Png
},
playerArtwork: {
fillHeight: 1000,
fillWidth: 1000,
height: 1000,
width: 1000,
format: ImageFormat.Jpg
},
staleTime: 1000 * 60
staleTime: 1000 * 60 * 60 * 24 // 1 Day
}