mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-17 00:24:43 -04:00
NotesService: Rename getCurrentContent to getNoteContentByNote
The new name should better explain what this functions does. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
1df4039b79
commit
aa97a87316
3 changed files with 16 additions and 7 deletions
|
@ -164,7 +164,7 @@ export class NotesController {
|
|||
if (!this.permissionsService.mayRead(req.user, note)) {
|
||||
throw new UnauthorizedException('Reading note denied!');
|
||||
}
|
||||
return await this.noteService.getNoteContent(noteIdOrAlias);
|
||||
return await this.noteService.getNoteContentByNote(note);
|
||||
} catch (e) {
|
||||
if (e instanceof NotInDBError) {
|
||||
throw new NotFoundException(e.message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue