refactor(note-group-permission-entry-dto): do not embed Group objects

This is part of an effort to consistently not embed Group objects
in API responses. Names are returned instead.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-01-16 22:45:27 +01:00
parent 13284b26cb
commit b40b2e164f
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 12 additions and 12 deletions

View file

@ -379,7 +379,7 @@ export class NotesService {
canEdit: noteUserPermission.canEdit,
})),
sharedToGroups: groupPermissions.map((noteGroupPermission) => ({
group: this.groupsService.toGroupDto(noteGroupPermission.group),
groupName: noteGroupPermission.group.name,
canEdit: noteGroupPermission.canEdit,
})),
};