|
|
@ -18,14 +18,14 @@ import { ProjectsService } from '../../../services/projects.service'; |
|
|
|
import { Base, Project } from '../../../models'; |
|
|
|
import { Base, Project } from '../../../models'; |
|
|
|
import { generateUniqueName } from '../../../helpers/exportImportHelpers'; |
|
|
|
import { generateUniqueName } from '../../../helpers/exportImportHelpers'; |
|
|
|
import { QueueService } from '../fallback-queue.service'; |
|
|
|
import { QueueService } from '../fallback-queue.service'; |
|
|
|
import { JobTypes } from '../../../interface/Jobs'; |
|
|
|
import { JOBS_QUEUE, JobTypes } from '../../../interface/Jobs'; |
|
|
|
|
|
|
|
|
|
|
|
@Controller() |
|
|
|
@Controller() |
|
|
|
@UseGuards(ExtractProjectIdMiddleware, GlobalGuard) |
|
|
|
@UseGuards(ExtractProjectIdMiddleware, GlobalGuard) |
|
|
|
export class DuplicateController { |
|
|
|
export class DuplicateController { |
|
|
|
activeQueue; |
|
|
|
activeQueue; |
|
|
|
constructor( |
|
|
|
constructor( |
|
|
|
@InjectQueue('jobs') private readonly jobsQueue: Queue, |
|
|
|
@InjectQueue(JOBS_QUEUE) private readonly jobsQueue: Queue, |
|
|
|
private readonly fallbackQueueService: QueueService, |
|
|
|
private readonly fallbackQueueService: QueueService, |
|
|
|
private readonly projectsService: ProjectsService, |
|
|
|
private readonly projectsService: ProjectsService, |
|
|
|
) { |
|
|
|
) { |
|
|
|