Skip to content

Commit 534f3d4

Browse files
committed
unrated konzi fix
1 parent 56bc263 commit 534f3d4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/consultations/consultations.controller.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,13 @@ export class ConsultationsController {
104104
limit: 2,
105105
startDate: new Date(),
106106
}),
107-
this.consultationsService.findAll({
108-
user,
109-
endDate: new Date(),
110-
unratedOnly: true,
111-
}),
107+
user
108+
? this.consultationsService.findAll({
109+
user,
110+
endDate: new Date(),
111+
unratedOnly: true,
112+
})
113+
: Promise.resolve([]),
112114
this.requestsService.findAll(true, 2),
113115
this.alertService.findFirst(),
114116
])

0 commit comments

Comments
 (0)