mirror of
https://github.com/valitydev/org-manager.git
synced 2024-11-06 00:15:23 +00:00
let's make party = owner (#40)
Co-authored-by: ggmaleva <ggmaleva@yandex.ru>
This commit is contained in:
parent
d18e24fc78
commit
982428de58
@ -19,13 +19,13 @@ public class OrganizationConverter {
|
||||
|
||||
public OrganizationEntity toEntity(Organization organization, String ownerId) {
|
||||
String orgId = UUID.randomUUID().toString();
|
||||
String partyId = UUID.randomUUID().toString();
|
||||
return OrganizationEntity.builder()
|
||||
.id(orgId)
|
||||
.createdAt(LocalDateTime.now())
|
||||
.name(organization.getName())
|
||||
.owner(ownerId)
|
||||
.party(partyId)
|
||||
// TODO [ggmaleva]: replace on unique id after introduce separate token generator
|
||||
.party(ownerId)
|
||||
.metadata(jsonMapper.toJson(organization.getMetadata()))
|
||||
.build();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user