Skip to content

Commit

Permalink
Merge pull request #33 from meshhq/update/new-image-model
Browse files Browse the repository at this point in the history
Updating emails to use new image model
  • Loading branch information
sgruse authored May 2, 2019
2 parents 9231d9d + 500aac4 commit a6e78ae
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 14 deletions.
6 changes: 3 additions & 3 deletions dist/transform/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports.BuildEventContent = (event, club, link) => {
const richContent = {
name: event.name,
subtitle: "New Club Event!",
photoURL: event.photoURL,
photoURL: event.image.md,
content: event.richContent.html,
url: link,
cta: 'View Event',
Expand All @@ -33,7 +33,7 @@ exports.BuildEventContent = (event, club, link) => {
exports.BuildPostContent = (post, club, link) => {
const postInfo = {
name: post.title,
photoURL: post.imageURL,
photoURL: post.image.md,
content: post.richContent.html,
url: link,
cta: 'View Post',
Expand Down Expand Up @@ -95,7 +95,7 @@ exports.BuildClubInfo = (club) => {
const clubInfo = {
name: club.name,
domain: club.domain,
logoURL: club.photoURL,
logoURL: club.image.md,
street: club.locations[0].address1,
city: club.locations[0].city,
state: club.locations[0].state,
Expand Down
35 changes: 28 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"index.js"
],
"dependencies": {
"club-hub-core": "https://git@github.com/meshhq/club-hub-core.git#0.0.54",
"club-hub-core": "https://git@github.com/meshhq/club-hub-core.git#0.0.77",
"feather-icons": "^4.17.0",
"handlebars": "^4.1.0",
"jsdom": "^14.0.0",
Expand Down
6 changes: 3 additions & 3 deletions src/transform/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const BuildEventContent = (event: core.Event.Model, club: core.Club.Model
const richContent: EventInfo = {
name: event.name,
subtitle: "New Club Event!",
photoURL: event.photoURL,
photoURL: event.image.md,
content: event.richContent.html,
url: link,
cta: 'View Event',
Expand All @@ -54,7 +54,7 @@ export const BuildEventContent = (event: core.Event.Model, club: core.Club.Model
export const BuildPostContent = (post: core.Post.Model, club: core.Club.Model, link: string): RichContent => {
const postInfo: RichContent = {
name: post.title,
photoURL: post.imageURL,
photoURL: post.image.md,
content: post.richContent.html,
url: link,
cta: 'View Post',
Expand Down Expand Up @@ -133,7 +133,7 @@ export const BuildClubInfo = (club: core.Club.Model): ClubInfo => {
const clubInfo: ClubInfo = {
name: club.name,
domain: club.domain,
logoURL: club.photoURL,
logoURL: club.image.md,
street: club.locations[0].address1,
city: club.locations[0].city,
state: club.locations[0].state,
Expand Down

0 comments on commit a6e78ae

Please sign in to comment.