Temporarily patch groups loading to make dev deploy work

This commit is contained in:
Marshall Polaris 2022-09-02 13:00:38 -07:00
parent a429a98a29
commit 245627a347

View File

@ -21,7 +21,11 @@ import { SEO } from 'web/components/SEO'
import { UserLink } from 'web/components/user-link'
export async function getStaticProps() {
const groups = await listAllGroups().catch((_) => [])
let groups = await listAllGroups().catch((_) => [])
// mqp: temporary fix to make dev deploy while Ian works on migrating groups away
// from the document array member and contracts representation
groups = groups.filter((g) => g.contractIds != null && g.memberIds != null)
const creators = await Promise.all(
groups.map((group) => getUser(group.creatorId))