mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 19:20:58 -05:00
NotesService: Get metadata from database
Signed-off-by: David Mehren <git@herrmehren.de> Co-authored-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
7d5dddaaaf
commit
99ab9f04c2
1 changed files with 3 additions and 3 deletions
|
@ -102,10 +102,10 @@ export class NotesService {
|
|||
// TODO: Convert DB UUID to base64
|
||||
id: note.id,
|
||||
alias: note.alias,
|
||||
title: NoteUtils.parseTitle(note),
|
||||
title: note.title,
|
||||
// TODO: Get actual createTime
|
||||
createTime: new Date(),
|
||||
description: NoteUtils.parseDescription(note),
|
||||
description: note.description,
|
||||
editedBy: note.authorColors.map(authorColor => authorColor.user.userName),
|
||||
// TODO: Extract into method
|
||||
permissions: {
|
||||
|
@ -119,7 +119,7 @@ export class NotesService {
|
|||
canEdit: noteGroupPermission.canEdit,
|
||||
})),
|
||||
},
|
||||
tags: NoteUtils.parseTags(note),
|
||||
tags: note.tags.map(tag => tag.name),
|
||||
updateTime: (await this.getLastRevision(note)).createdAt,
|
||||
// TODO: Get actual updateUser
|
||||
updateUser: {
|
||||
|
|
Loading…
Reference in a new issue