diff --git a/apps/api/src/app/import-jobs/import-jobs.controller.ts b/apps/api/src/app/import-jobs/import-jobs.controller.ts index ef157a822..afea25fb0 100644 --- a/apps/api/src/app/import-jobs/import-jobs.controller.ts +++ b/apps/api/src/app/import-jobs/import-jobs.controller.ts @@ -39,6 +39,8 @@ export class ImportJobsController { return this.createUserJob.execute({ _templateId: templateId, url: createUserJobData.url, + extra: createUserJobData.extra, + externalUserId: createUserJobData.externalUserId, }); } diff --git a/apps/api/src/app/import-jobs/import-jobs.module.ts b/apps/api/src/app/import-jobs/import-jobs.module.ts index f73fcc0aa..bdff45db7 100644 --- a/apps/api/src/app/import-jobs/import-jobs.module.ts +++ b/apps/api/src/app/import-jobs/import-jobs.module.ts @@ -1,6 +1,6 @@ import { Module } from '@nestjs/common'; -import { SharedModule } from '@shared/shared.module'; import { USECASES } from './usecase'; +import { SharedModule } from '@shared/shared.module'; import { ImportJobsController } from './import-jobs.controller'; @Module({ diff --git a/apps/api/src/app/import-jobs/usecase/get-userjob/get-userjob.usecase.ts b/apps/api/src/app/import-jobs/usecase/get-userjob/get-userjob.usecase.ts index fac3a59c5..c54438e86 100644 --- a/apps/api/src/app/import-jobs/usecase/get-userjob/get-userjob.usecase.ts +++ b/apps/api/src/app/import-jobs/usecase/get-userjob/get-userjob.usecase.ts @@ -1,7 +1,8 @@ import { UserJobRepository } from '@impler/dal'; -import { BadRequestException } from '@nestjs/common'; +import { BadRequestException, Injectable } from '@nestjs/common'; import { APIMessages } from '@shared/constants'; +@Injectable() export class GetUserJob { constructor(private readonly userJobRepository: UserJobRepository) {} diff --git a/apps/api/src/app/shared/shared.module.ts b/apps/api/src/app/shared/shared.module.ts index 1be77c781..79ced6731 100644 --- a/apps/api/src/app/shared/shared.module.ts +++ b/apps/api/src/app/shared/shared.module.ts @@ -43,7 +43,6 @@ const DAL_MODELS = [ ValidatorRepository, WebhookDestinationRepository, BubbleDestinationRepository, - UserJobRepository, JobMappingRepository, UserJobRepository, SchedulerRegistry,