Skip to content

Commit 5a0f189

Browse files
committed
Fix missing response return in guilds API endpoint
1 parent 62d7bd5 commit 5a0f189

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

dash/src/pages/api/guilds.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ export default async function handler(
6666
}
6767
})
6868
)
69+
70+
// Return the guilds with their status
71+
return res.status(200).json(guildsWithStatus)
6972
} catch (error) {
7073
console.error('Error fetching guilds:', error)
71-
res.status(500).json({ error: 'Failed to fetch guilds' })
74+
return res.status(500).json({ error: 'Failed to fetch guilds' })
7275
}
7376
}

0 commit comments

Comments
 (0)