mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-27 13:34:28 -04:00
HistoryService: Refactor deleteHistoryEntry
The function now expects a `Note` object instead of a noteId to make it more consistent with other functions. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
c515569299
commit
b552fc10b6
6 changed files with 13 additions and 13 deletions
|
@ -191,7 +191,7 @@ describe('History', () => {
|
|||
const userEntries = await historyService.getEntriesByUser(user);
|
||||
expect(userEntries.length).toEqual(1);
|
||||
expect(userEntries[0].pinStatus).toBeTruthy();
|
||||
await historyService.deleteHistoryEntry(note2.alias, user);
|
||||
await historyService.deleteHistoryEntry(note2, user);
|
||||
});
|
||||
|
||||
it('DELETE /me/history/:note', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue