Skip to content

Commit

Permalink
fix(backend): be sure to return null if social is not specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardPaligot committed Apr 29, 2024
1 parent 37f956c commit 38e5936
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ fun PartnerDb.convertToModelV2(jobs: List<Job>) = PartnerV2(
logoUrl = this.logoUrl,
media = convertToPartnerMediaModel(),
siteUrl = this.siteUrl,
twitterUrl = this.twitterUrl,
twitterUrl = if (this.twitterUrl == "") null else this.twitterUrl,
twitterMessage = this.twitterMessage,
linkedinUrl = this.linkedinUrl,
linkedinUrl = if (this.linkedinUrl == "") null else this.linkedinUrl,
linkedinMessage = this.linkedinMessage,
address = this.address.convertToModel(),
jobs = jobs
Expand Down

0 comments on commit 38e5936

Please sign in to comment.