fix: resolve async/await issues in download API routes

Fixed missing await keywords in asset store operations that were causing
type errors during build. Both download routes now properly await the
asynchronous asset store.get() calls.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock
2025-09-14 17:48:02 -05:00
parent 69bda9fb36
commit 9afaf6e12a
2 changed files with 3 additions and 3 deletions

View File

@@ -9,10 +9,10 @@ export async function GET(
const { id } = params
console.log('🔍 Looking for asset:', id)
console.log('📦 Available assets:', Array.from(assetStore.keys()))
console.log('📦 Available assets:', await assetStore.keys())
// Get asset from store
const asset = assetStore.get(id)
const asset = await assetStore.get(id)
if (!asset) {
console.log('❌ Asset not found in store')
return NextResponse.json({

View File

@@ -8,7 +8,7 @@ export async function GET(
try {
const { id } = params
const asset = assetStore.get(id)
const asset = await assetStore.get(id)
if (!asset) {
return NextResponse.json(
{ error: 'Asset not found' },