Pull out 'from' as constant

This commit is contained in:
Forrest Wolf 2022-06-28 13:20:55 -04:00
parent 7799e77100
commit a56357430d

View File

@ -12,6 +12,10 @@ import { getValueFromBucket } from '../../common/calculate-dpm'
import { sendTemplateEmail } from './send-email' import { sendTemplateEmail } from './send-email'
import { getPrivateUser, getUser } from './utils' import { getPrivateUser, getUser } from './utils'
const from = {
from: 'David from Manifold <david@manifold.markets>',
}
export const sendMarketResolutionEmail = async ( export const sendMarketResolutionEmail = async (
userId: string, userId: string,
investment: number, investment: number,
@ -135,9 +139,7 @@ export const sendWelcomeEmail = async (
name: firstName, name: firstName,
unsubscribeLink, unsubscribeLink,
}, },
{ from
from: 'David from Manifold <david@manifold.markets>',
}
) )
} }
@ -167,9 +169,7 @@ export const sendOneWeekBonusEmail = async (
unsubscribeLink, unsubscribeLink,
manalink: '', // TODO manalink: '', // TODO
}, },
{ from
from: 'David from Manifold <david@manifold.markets>',
}
) )
} }
@ -197,9 +197,7 @@ export const sendThankYouEmail = async (
name: firstName, name: firstName,
unsubscribeLink, unsubscribeLink,
}, },
{ from
from: 'David from Manifold <david@manifold.markets>',
}
) )
} }