mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 10:16:32 -05:00
Merge pull request #1164 from hedgedoc/fix/revision
RevisionsService: Add missing awaits
This commit is contained in:
commit
87e0ca54e1
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