Fix group factory
This commit is contained in:
parent
60875e5dc2
commit
d75920718f
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ function buildCard(props: Partial<Card> = {}): Card {
|
||||||
function buildGroup(props: Partial<Group> = {}): Group {
|
function buildGroup(props: Partial<Group> = {}): Group {
|
||||||
return groupSchema.parse(Object.assign({
|
return groupSchema.parse(Object.assign({
|
||||||
id: uuidv4(),
|
id: uuidv4(),
|
||||||
|
owner: {
|
||||||
|
id: uuidv4(),
|
||||||
|
},
|
||||||
}, props));
|
}, props));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue