fix: eslint errors
This commit is contained in:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user