fix: eslint errors

This commit is contained in:
2023-02-10 17:28:54 +01:00
parent 6624bfefb0
commit 0c829c88c5
86 changed files with 171 additions and 169 deletions

View File

@@ -18,7 +18,7 @@ export const load = (async ({ setHeaders }) => {
id
}
}`)
const { data: { photo: photosIds }} = totalRes
const { data: { photo: photosIds } } = totalRes
// Get random photos
const randomPhotosIds = [...getRandomItems(photosIds, 11)].map(({ id }) => id)
@@ -41,7 +41,7 @@ export const load = (async ({ setHeaders }) => {
image { id }
}
}`)
const { data: { photo: photos }} = photosRes
const { data: { photo: photos } } = photosRes
if (photos) {
setHeaders({ 'Cache-Control': 'public, max-age=1, stale-while-revalidate=599' })