Skip to content

Commit

Permalink
fix: add await
Browse files Browse the repository at this point in the history
  • Loading branch information
Daaaiii committed May 9, 2024
1 parent 490d68a commit 7a7241e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/task/task.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ export class TaskRepository {
}

async findTaskById(id: number) {
return this.prisma.task.findFirst({
return await this.prisma.task.findFirst({
where: {
id,
},
});
}

async validateParent(parentId: string) {
return this.prisma.parentProfile.findFirst({
return await this.prisma.parentProfile.findFirst({
where: {
id: parentId,
},
Expand Down

0 comments on commit 7a7241e

Please sign in to comment.