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