mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-17 11:33:44 +00: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> {
|
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