mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Ensure that if no env is provided it uses the old email settings
This commit is contained in:
parent
34e039e4e7
commit
8b845b5433
1 changed files with 3 additions and 1 deletions
|
|
@ -113,7 +113,9 @@ const createRandomEmailAddress = (userName: string, length: number): string => {
|
|||
when rand is sdfsdf-: jacksonh-sdfsdf-e@inbox.omnivore.app
|
||||
when rand is abcdef: jacksonh-abcdefe@inbox.omnivore.app
|
||||
*/
|
||||
return `${userName}-${nanoid(length)}e@${env.email.domain}`
|
||||
return `${userName}-${nanoid(length)}e@${
|
||||
env.email.domain || `@${inbox}.omnivore.app`
|
||||
}`
|
||||
}
|
||||
|
||||
export const findNewsletterEmailById = async (
|
||||
|
|
|
|||
Loading…
Reference in a new issue