chore: linting and build fixes

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2025-05-19 11:42:26 +02:00
parent 522d1758d8
commit 0a7501f6c8
No known key found for this signature in database
GPG key ID: DB99ADDDC5C0AF82
4 changed files with 17 additions and 34 deletions

View file

@ -202,6 +202,7 @@ export class NotesController {
@RequestNoteId() noteId: number,
@Param('username') username: NoteUserPermissionEntryDto['username'],
): Promise<NotePermissionsDto> {
// TODO Fix this removing wrong user permission!
try {
await this.permissionService.removeUserPermission(noteId, userId);
return await this.noteService.toNotePermissionsDto(noteId);