Skip to content

Commit 85c8869

Browse files
Fixed type error.
1 parent fb572d4 commit 85c8869

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jobs/job.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { CreateJobDto } from './dto/create-job.dto';
55
import { UpdateJobDto } from './dto/update-job.dto';
66
import { JobOrderByDto } from './dto/job-order-by.dto';
77
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
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

Comments
 (0)