fix: temporarily disable albums in RSS feed

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 <noreply@anthropic.com>
This commit is contained in:
Justin Edmund 2025-07-24 03:50:14 -07:00
parent 1b0269e81e
commit 1ed0afb5b2

View file

@ -66,68 +66,9 @@ export const GET: RequestHandler = async (event) => {
take: 25 take: 25
}) })
// Get published albums that show in universe // TODO: Re-enable albums once database schema is updated
const universeAlbums = await prisma.album.findMany({ const universeAlbums: any[] = []
where: { const photoAlbums: any[] = []
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
})
// Combine all content types // Combine all content types
const items = [ const items = [