refactor(core): Convert workflows controller to DI (no-changelog) (#8253)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Authorized, Get, RestController } from '@/decorators';
|
||||
import { WorkflowRequest } from '@/requests';
|
||||
import { ActiveWorkflowRequest } from '@/requests';
|
||||
import { ActiveWorkflowsService } from '@/services/activeWorkflows.service';
|
||||
|
||||
@Authorized()
|
||||
@@ -8,12 +8,12 @@ export class ActiveWorkflowsController {
|
||||
constructor(private readonly activeWorkflowsService: ActiveWorkflowsService) {}
|
||||
|
||||
@Get('/')
|
||||
async getActiveWorkflows(req: WorkflowRequest.GetAllActive) {
|
||||
async getActiveWorkflows(req: ActiveWorkflowRequest.GetAllActive) {
|
||||
return this.activeWorkflowsService.getAllActiveIdsFor(req.user);
|
||||
}
|
||||
|
||||
@Get('/error/:id')
|
||||
async getActivationError(req: WorkflowRequest.GetActivationError) {
|
||||
async getActivationError(req: ActiveWorkflowRequest.GetActivationError) {
|
||||
const {
|
||||
user,
|
||||
params: { id: workflowId },
|
||||
|
||||
Reference in New Issue
Block a user