kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
factory: generate account on status if not provided
rodzic
3000f94325
commit
eb0c499d91
|
@ -87,6 +87,7 @@ function buildRelationship(props: PartialDeep<Relationship> = {}): Relationship
|
|||
function buildStatus(props: PartialDeep<Status> = {}) {
|
||||
return statusSchema.parse(Object.assign({
|
||||
id: uuidv4(),
|
||||
account: buildAccount(),
|
||||
}, props));
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue