mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00
PrivateAPI: Add pinStatus to HistoryEntryImportDto
As the DTO is only for importing an existing history the pinStatus of those entries should also be posted. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
1154894876
commit
eeaa74b385
5 changed files with 70 additions and 8 deletions
|
@ -65,7 +65,11 @@ export class HistoryController {
|
|||
const note = await this.noteService.getNoteByIdOrAlias(
|
||||
historyEntry.note,
|
||||
);
|
||||
await this.historyService.createOrUpdateHistoryEntry(note, user);
|
||||
await this.historyService.createOrUpdateHistoryEntry(
|
||||
note,
|
||||
user,
|
||||
historyEntry.pinStatus,
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof NotInDBError) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue