mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-20 20:01:00 +02:00
refactor(core): Standardize filename casing for controllers and databases (no-changelog) (#10564)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { Get, RestController } from '@/decorators';
|
||||
import { ActiveWorkflowRequest } from '@/requests';
|
||||
import { ActiveWorkflowsService } from '@/services/activeWorkflows.service';
|
||||
|
||||
@RestController('/active-workflows')
|
||||
export class ActiveWorkflowsController {
|
||||
constructor(private readonly activeWorkflowsService: ActiveWorkflowsService) {}
|
||||
|
||||
@Get('/')
|
||||
async getActiveWorkflows(req: ActiveWorkflowRequest.GetAllActive) {
|
||||
return await this.activeWorkflowsService.getAllActiveIdsFor(req.user);
|
||||
}
|
||||
|
||||
@Get('/error/:id')
|
||||
async getActivationError(req: ActiveWorkflowRequest.GetActivationError) {
|
||||
const {
|
||||
user,
|
||||
params: { id: workflowId },
|
||||
} = req;
|
||||
return await this.activeWorkflowsService.getActivationError(workflowId, user);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user