mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-02 13:41:22 +00:00
RevisionsService: Add missing awaits
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
678f69f562
commit
36cd0fd246
1 changed files with 4 additions and 4 deletions
|
@ -42,8 +42,8 @@ export class RevisionsService {
|
|||
});
|
||||
}
|
||||
|
||||
getLatestRevision(noteId: string): Promise<Revision> {
|
||||
return this.revisionRepository.findOne({
|
||||
async getLatestRevision(noteId: string): Promise<Revision> {
|
||||
return await this.revisionRepository.findOne({
|
||||
where: {
|
||||
note: noteId,
|
||||
},
|
||||
|
@ -54,8 +54,8 @@ export class RevisionsService {
|
|||
});
|
||||
}
|
||||
|
||||
getFirstRevision(noteId: string): Promise<Revision> {
|
||||
return this.revisionRepository.findOne({
|
||||
async getFirstRevision(noteId: string): Promise<Revision> {
|
||||
return await this.revisionRepository.findOne({
|
||||
where: {
|
||||
note: noteId,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue