Skip to content

Commit

Permalink
fix(jobs): moved org logo fallback to mw side
Browse files Browse the repository at this point in the history
  • Loading branch information
AndySakov committed Nov 4, 2024
1 parent 17f676f commit 33d6f91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/shared/entities/job-list-result.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
import {
generateOrgAggregateRating,
generateOrgAggregateRatings,
getGoogleLogoUrl,
nonZeroOrNull,
notStringOrNull,
} from "../helpers";
Expand Down Expand Up @@ -77,7 +78,11 @@ export class JobListResultEntity {
hasUser: organization?.hasUser ?? false,
atsClient: organization?.atsClient ?? null,
docs: notStringOrNull(organization?.docs),
logoUrl: notStringOrNull(organization?.logoUrl),
logoUrl:
notStringOrNull(organization?.logoUrl) ??
(organization.website
? getGoogleLogoUrl(organization.website)
: null),
headcountEstimate: nonZeroOrNull(organization?.headcountEstimate),
github: notStringOrNull(organization?.github),
twitter: notStringOrNull(organization?.twitter),
Expand Down

0 comments on commit 33d6f91

Please sign in to comment.