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:
David Mehren 2021-08-29 21:42:46 +02:00
parent 839877dbc5
commit d2b60a316f
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
6 changed files with 13 additions and 13 deletions

View file

@ -96,10 +96,8 @@ describe('Me', () => {
it(`GET /me/history`, async () => {
const noteName = 'testGetNoteHistory1';
const note = await notesService.createNote('', noteName);
const createdHistoryEntry = await historyService.updateHistoryEntryTimestamp(
note,
user,
);
const createdHistoryEntry =
await historyService.updateHistoryEntryTimestamp(note, user);
const response = await request(app.getHttpServer())
.get('/me/history')
.expect('Content-Type', /json/)