fix: auth error
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
This commit is contained in:
parent
0032ff4658
commit
0c53ac69b0
1 changed files with 1 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ const permissionCheckCompany = createPermCheck((_) => true);
|
|||
@Tags("Task Order")
|
||||
export class TaskController extends Controller {
|
||||
@Get("stats")
|
||||
@Security("keycloak")
|
||||
async getTaskOrderStats(@Request() req: RequestWithUser) {
|
||||
const task = await prisma.taskOrder.groupBy({
|
||||
where: { registeredBranch: { OR: permissionCondCompany(req.user) } },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue