File size: 344 Bytes
9a42933 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import { getRandomPartyId } from "@/lib/getRandomPartyId"
import { Party } from "@/types"
export function newParty(party: Partial<Party> = {}): Party {
return {
partyId: getRandomPartyId(),
durationInMs: 5 * 60 * 1000,
startedAt: "", // ISO datetime
status: "waiting",
players: [],
challenges: [],
...party,
}
} |