Skip to content

Commit

Permalink
fix(jobs): restored description field for jobposts
Browse files Browse the repository at this point in the history
  • Loading branch information
AndySakov committed Oct 5, 2023
1 parent 8217970 commit 2e74440
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared/entities/job-list-result.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export class JobListResultEntity {
offersTokenAllocation: jobpost?.offersTokenAllocation ?? null,
url: notStringOrNull(jobpost?.url),
title: notStringOrNull(jobpost?.title),
summary: notStringOrNull(jobpost?.summary),
description: notStringOrNull(jobpost?.description),
organization: {
...organization,
docs: notStringOrNull(organization?.docs),
Expand Down
6 changes: 6 additions & 0 deletions src/shared/interfaces/structured-jobpost.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class StructuredJobpost {
salary: t.union([t.number, t.null]),
payRate: t.union([t.number, t.null]),
summary: t.union([t.string, t.null]),
description: t.union([t.string, t.null]),
culture: t.union([t.string, t.null]),
location: t.union([t.string, t.null]),
seniority: t.union([t.string, t.null]),
Expand All @@ -41,6 +42,9 @@ export class StructuredJobpost {
@ApiPropertyOptional()
summary: string | null;

@ApiPropertyOptional()
description: string | null;

@ApiPropertyOptional()
payRate: number | null;

Expand Down Expand Up @@ -104,6 +108,7 @@ export class StructuredJobpost {
culture,
location,
summary,
description,
benefits,
shortUUID,
seniority,
Expand All @@ -130,6 +135,7 @@ export class StructuredJobpost {
this.benefits = benefits;
this.shortUUID = shortUUID;
this.seniority = seniority;
this.description = description;
this.requirements = requirements;
this.paysInCrypto = paysInCrypto;
this.minimumSalary = minimumSalary;
Expand Down
5 changes: 5 additions & 0 deletions src/shared/models/structured-jobpost.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ export const StructuredJobposts = (
allowEmpty: true,
required: false,
},
description: {
type: "string",
allowEmpty: true,
required: false,
},
benefits: {
type: "array",
allowEmpty: true,
Expand Down

0 comments on commit 2e74440

Please sign in to comment.