refactor(history-entry): rename lastVisited

This is part of an effort to name all date attributes
consistently.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2022-01-16 22:04:34 +01:00
parent f1feb3bf94
commit 6cd3feb82c
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
4 changed files with 9 additions and 9 deletions

View file

@ -29,7 +29,7 @@ export class HistoryEntryDto {
*/
@IsDate()
@ApiProperty()
lastVisited: Date;
lastVisitedAt: Date;
@IsArray()
@IsString({ each: true })

View file

@ -189,7 +189,7 @@ export class HistoryService {
async toHistoryEntryDto(entry: HistoryEntry): Promise<HistoryEntryDto> {
return {
identifier: await getIdentifier(entry),
lastVisited: entry.updatedAt,
lastVisitedAt: entry.updatedAt,
tags: await this.notesService.toTagList(entry.note),
title: entry.note.title ?? '',
pinStatus: entry.pinStatus,