From 1ed0afb5b24a1298be05596a3ae924cdb5d2b214 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 24 Jul 2025 03:50:14 -0700 Subject: [PATCH] fix: temporarily disable albums in RSS feed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove album queries from RSS feed to fix production error. Albums will be re-enabled once database schema is updated. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/routes/rss/+server.ts | 65 ++------------------------------------- 1 file changed, 3 insertions(+), 62 deletions(-) diff --git a/src/routes/rss/+server.ts b/src/routes/rss/+server.ts index a8807d3..147573d 100644 --- a/src/routes/rss/+server.ts +++ b/src/routes/rss/+server.ts @@ -66,68 +66,9 @@ export const GET: RequestHandler = async (event) => { take: 25 }) - // Get published albums that show in universe - const universeAlbums = await prisma.album.findMany({ - where: { - status: 'published', - showInUniverse: true - }, - include: { - media: { - include: { - media: true - }, - orderBy: { displayOrder: 'asc' }, - take: 1 // Get first media for cover image - }, - _count: { - select: { media: true } - } - }, - orderBy: { createdAt: 'desc' }, - take: 15 - }) - - // Get published photography albums - const photoAlbums = await prisma.album.findMany({ - where: { - status: 'published', - media: { - some: { - media: { - isPhotography: true - } - } - } - }, - include: { - media: { - include: { - media: true - }, - where: { - media: { - isPhotography: true - } - }, - orderBy: { displayOrder: 'asc' }, - take: 1 // Get first photo for cover image - }, - _count: { - select: { - media: { - where: { - media: { - isPhotography: true - } - } - } - } - } - }, - orderBy: { createdAt: 'desc' }, - take: 15 - }) + // TODO: Re-enable albums once database schema is updated + const universeAlbums: any[] = [] + const photoAlbums: any[] = [] // Combine all content types const items = [