RevisionsService: Add missing awaits

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-04-22 18:26:19 +02:00
parent 2c75de747f
commit bcd434b201

View file

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