Skip to content

Commit

Permalink
use deleteReason in template if present
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Jan 8, 2019
1 parent a869465 commit 09975e6
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions functions/src/lib/email/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,16 @@ Köszönjük!
${FOOTER}`

export const deletedUserText = ({name}) =>
`
export function deletedUserText({name, deleteReason}) {
return `
Tisztelt ${name}!
${deleteReason ||`
Foglalása törölve lett rendszerünkből.
Sajnáljuk.
${FOOTER}`


export const rejectedUserText = ({name, ...reservation}) =>
`
Tisztelt ${name}!
Foglalása az alábbiak szerint módosul:
${commonFields(reservation)}
Sajnáljuk.`}
${FOOTER}`
}


export const reservationHTML = async (user, status, reservation) =>
Expand Down

0 comments on commit 09975e6

Please sign in to comment.