Merge pull request #1164 from hedgedoc/fix/revision

RevisionsService: Add missing awaits
This commit is contained in:
David Mehren 2021-04-22 22:50:44 +02:00 committed by GitHub
commit 87e0ca54e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
},