mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
feat(note): add version attribute
This attribute was defined in the dev docs, but never implemented. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
6944094b9b
commit
50c8f39c0c
3 changed files with 11 additions and 0 deletions
|
@ -406,6 +406,7 @@ export class NotesService {
|
|||
editedBy: (await this.getAuthorUsers(note)).map((user) => user.username),
|
||||
permissions: await this.toNotePermissionsDto(note),
|
||||
tags: await this.toTagList(note),
|
||||
version: note.version,
|
||||
updatedAt: (await this.getLatestRevision(note)).createdAt,
|
||||
updateUsername: updateUser ? updateUser.username : null,
|
||||
viewCount: note.viewCount,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue