mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
UserService: Improve method naming
This renames `createOrUpdateHistoryEntry` to `updateHistoryEntryTimestamp`, which reduces confusion with the similarly named `updateHistoryEntry` function. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
e65c19ddd8
commit
3396d3e47d
6 changed files with 16 additions and 16 deletions
|
@ -60,7 +60,7 @@ export class NotesController {
|
|||
if (!this.permissionsService.mayRead(user, note)) {
|
||||
throw new UnauthorizedException('Reading note denied!');
|
||||
}
|
||||
await this.historyService.createOrUpdateHistoryEntry(note, user);
|
||||
await this.historyService.updateHistoryEntryTimestamp(note, user);
|
||||
return await this.noteService.toNoteDto(note);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue