fix: services use the new typings from create methods

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-09-25 11:52:42 +02:00 committed by David Mehren
parent d0b8e4cd36
commit 8cda5f99fb
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
4 changed files with 15 additions and 11 deletions

View file

@ -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);