Use directory organisations API route

This commit is contained in:
Sam Poder 2024-12-01 23:22:31 -06:00 committed by GitHub
parent 9781f0face
commit 452d79b64d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -247,7 +247,7 @@ export async function getStaticProps() {
})
const transparentAccounts = (
await fetch('https://hcb.hackclub.com/api/v3/organizations').then(res =>
await fetch('https://hcb.hackclub.com/api/v3/directory/organizations').then(res =>
res.json()
)
).filter(account => account.category?.replaceAll(' ', '_') === 'hack_club_hq')