mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
Remove history entry todos
Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
18116f4e64
commit
0aff06637c
1 changed files with 0 additions and 2 deletions
|
@ -105,7 +105,6 @@ export class MeController {
|
||||||
@RequestNote() note: Note,
|
@RequestNote() note: Note,
|
||||||
@Body() entryUpdateDto: HistoryEntryUpdateDto,
|
@Body() entryUpdateDto: HistoryEntryUpdateDto,
|
||||||
): Promise<HistoryEntryDto> {
|
): Promise<HistoryEntryDto> {
|
||||||
// ToDo: Check if user is allowed to pin this history entry
|
|
||||||
return await this.historyService.toHistoryEntryDto(
|
return await this.historyService.toHistoryEntryDto(
|
||||||
await this.historyService.updateHistoryEntry(note, user, entryUpdateDto),
|
await this.historyService.updateHistoryEntry(note, user, entryUpdateDto),
|
||||||
);
|
);
|
||||||
|
@ -118,7 +117,6 @@ export class MeController {
|
||||||
@RequestUser() user: User,
|
@RequestUser() user: User,
|
||||||
@RequestNote() note: Note,
|
@RequestNote() note: Note,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
// ToDo: Check if user is allowed to delete note
|
|
||||||
await this.historyService.deleteHistoryEntry(note, user);
|
await this.historyService.deleteHistoryEntry(note, user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue