mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
refactor(note-group-permission-update-dto): rename attribute groupName
For consistency with NoteGroupPermissionEntryDto Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
b40b2e164f
commit
96ed5f3cc8
3 changed files with 12 additions and 12 deletions
|
@ -285,7 +285,7 @@ export class NotesService {
|
|||
);
|
||||
|
||||
const groups = newPermissions.sharedToGroups.map(
|
||||
(groupPermission) => groupPermission.groupname,
|
||||
(groupPermission) => groupPermission.groupName,
|
||||
);
|
||||
|
||||
if (checkArrayForDuplicates(users) || checkArrayForDuplicates(groups)) {
|
||||
|
@ -318,7 +318,7 @@ export class NotesService {
|
|||
// Create groupPermissions
|
||||
for (const newGroupPermission of newPermissions.sharedToGroups) {
|
||||
const group = await this.groupsService.getGroupByName(
|
||||
newGroupPermission.groupname,
|
||||
newGroupPermission.groupName,
|
||||
);
|
||||
const createdPermission = NoteGroupPermission.create(
|
||||
group,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue