mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-07 01:51:36 -04:00
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:
parent
f1feb3bf94
commit
6cd3feb82c
4 changed files with 9 additions and 9 deletions
|
@ -29,7 +29,7 @@ export class HistoryEntryDto {
|
|||
*/
|
||||
@IsDate()
|
||||
@ApiProperty()
|
||||
lastVisited: Date;
|
||||
lastVisitedAt: Date;
|
||||
|
||||
@IsArray()
|
||||
@IsString({ each: true })
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue