@@ -5,7 +5,8 @@ import { CreateJobDto } from './dto/create-job.dto';
55import { UpdateJobDto } from './dto/update-job.dto' ;
66import { JobOrderByDto } from './dto/job-order-by.dto' ;
77import { PaginationArgs } from '../common/pagination/pagination.args' ;
8- import { Job , Company , Tag } from '@prisma/client' ;
8+ import { Company , Job , Tag } from '@prisma/client' ;
9+ // Remove Company import and use type inference or define Company type inline if needed
910
1011/**
1112 * Job Service
@@ -31,8 +32,7 @@ export class JobService {
3132 async create ( createJobDto : CreateJobDto , userId ?: number ) : Promise < Job > {
3233 const { title, companyName, companyId, author, location, url, description, isRemote, tags, metadata, sources } = createJobDto ;
3334
34- // Handle company creation or lookup
35- let company : Company | null = null ;
35+ let company : any = null ;
3636 if ( companyId ) {
3737 company = await this . prisma . company . findUnique ( {
3838 where : { id : companyId } ,
@@ -239,7 +239,7 @@ export class JobService {
239239 const { title, companyName, companyId, author, location, url, description, isRemote, tags, metadata } = updateJobDto ;
240240
241241 // Handle company update
242- let company : Company | null = null ;
242+ let company : any = null ;
243243 if ( companyId ) {
244244 company = await this . prisma . company . findUnique ( {
245245 where : { id : companyId } ,
0 commit comments