Skip to content

Commit

Permalink
Make addPromotionEmail more genatic, accepting from as params
Browse files Browse the repository at this point in the history
  • Loading branch information
wesley100002001 committed Nov 3, 2023
1 parent 4fb3b6f commit 9b62016
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/firestore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1018,8 +1018,11 @@ async function updateNewsletter(newsletterID, newsletter) {
return getNewsletter(newsletterID)
}

async function addPromotionEmails(email) {
const promotionEmail = Object.assign({ email, from: 'life-etiquette-park' })
async function addPromotionEmails(email, from) {
const promotionEmail = {
email,
from
}
let ref = bunkoFS.collection('promotion-emails').doc()
await ref.set(promotionEmail)
}
Expand Down

0 comments on commit 9b62016

Please sign in to comment.