From f11bed9821b19b3f23a40206df720849b548b35e Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Mon, 30 Oct 2023 22:26:33 -0500 Subject: [PATCH] Chance AuthSession type reference --- src/cache/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cache/index.ts b/src/cache/index.ts index 282baf77..ccc85309 100644 --- a/src/cache/index.ts +++ b/src/cache/index.ts @@ -15,7 +15,7 @@ import { } from '@/services/postgres'; import { parseCachedPhotosDates, parseCachedPhotoDates } from '@/photo'; import { getBlobPhotoUrls, getBlobUploadUrls } from '@/services/blob'; -import { AuthSession } from 'next-auth'; +import type { Session } from 'next-auth'; import { Camera, createCameraKey } from '@/camera'; import { PATHS_ADMIN, PATHS_TO_CACHE } from '@/site/paths'; @@ -226,7 +226,7 @@ export const getBlobPhotoUrlsCached: typeof getBlobPhotoUrls = (...args) => } )(); -export const getImageCacheHeadersForAuth = (session: AuthSession | null) => { +export const getImageCacheHeadersForAuth = (session: Session | null) => { return { 'Cache-Control': !session?.user ? 's-maxage=3600, stale-while-revalidate=59'