mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-08 10:22:47 -04:00
fix: services use the new typings from create methods
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
d0b8e4cd36
commit
8cda5f99fb
4 changed files with 15 additions and 11 deletions
|
@ -173,7 +173,7 @@ export class HistoryService {
|
|||
`Note with id/alias '${historyEntry.note}' not found.`,
|
||||
);
|
||||
}
|
||||
const entry = HistoryEntry.create(user, note);
|
||||
const entry = HistoryEntry.create(user, note) as HistoryEntry;
|
||||
entry.pinStatus = historyEntry.pinStatus;
|
||||
entry.updatedAt = historyEntry.lastVisited;
|
||||
await manager.save<HistoryEntry>(entry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue