clean routes
This commit is contained in:
@@ -53,6 +53,7 @@ export class GetDashboardStatsUseCase {
|
||||
try {
|
||||
// Get actor (current user)
|
||||
const actor = await this.adminUserRepo.findById(UserId.fromString(input.actorId));
|
||||
|
||||
if (!actor) {
|
||||
return Result.err({
|
||||
code: 'AUTHORIZATION_ERROR',
|
||||
@@ -177,4 +178,4 @@ export class GetDashboardStatsUseCase {
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user