Skip to content

Commit

Permalink
Merge pull request #94 from bartcoppens/patch-1
Browse files Browse the repository at this point in the history
Issues in update and create of companies
  • Loading branch information
kmossco authored Jan 12, 2018
2 parents cf13889 + 83999b3 commit 7d2dff5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Intercom/Clients/CompanyClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ private String Transform(Company company)
name = company.name,
monthly_spend = company.monthly_spend,
custom_attributes = company.custom_attributes,
plan = company.plan != null ? company.plan.name : String.Empty
plan = company.plan != null ? company.plan.name : null,
website = company.website,
size = company.size,
industry = company.industry
};

return JsonConvert.SerializeObject(body,
Expand All @@ -205,4 +208,4 @@ private String Transform(Company company)
});
}
}
}
}

0 comments on commit 7d2dff5

Please sign in to comment.