@@ -5,7 +5,8 @@ import { CreateJobDto } from './dto/create-job.dto';
5
5
import { UpdateJobDto } from './dto/update-job.dto' ;
6
6
import { JobOrderByDto } from './dto/job-order-by.dto' ;
7
7
import { 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
9
10
10
11
/**
11
12
* Job Service
@@ -31,8 +32,7 @@ export class JobService {
31
32
async create ( createJobDto : CreateJobDto , userId ?: number ) : Promise < Job > {
32
33
const { title, companyName, companyId, author, location, url, description, isRemote, tags, metadata, sources } = createJobDto ;
33
34
34
- // Handle company creation or lookup
35
- let company : Company | null = null ;
35
+ let company : any = null ;
36
36
if ( companyId ) {
37
37
company = await this . prisma . company . findUnique ( {
38
38
where : { id : companyId } ,
@@ -239,7 +239,7 @@ export class JobService {
239
239
const { title, companyName, companyId, author, location, url, description, isRemote, tags, metadata } = updateJobDto ;
240
240
241
241
// Handle company update
242
- let company : Company | null = null ;
242
+ let company : any = null ;
243
243
if ( companyId ) {
244
244
company = await this . prisma . company . findUnique ( {
245
245
where : { id : companyId } ,
0 commit comments