mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
fix types without changing logic
This commit is contained in:
parent
c60569e900
commit
bad4b69868
@ -25,7 +25,7 @@ export const sendEmailTranslated = async ({
|
|||||||
}
|
}
|
||||||
template: string
|
template: string
|
||||||
locals: Record<string, unknown>
|
locals: Record<string, unknown>
|
||||||
}): Promise<Record<string, unknown> | boolean | null> => {
|
}): Promise<Record<string, unknown> | boolean | null | Error> => {
|
||||||
// TODO: test the calling order of 'i18n.setLocale' for example: language of logging 'en', language of email receiver 'es', reset language of current user 'de'
|
// TODO: test the calling order of 'i18n.setLocale' for example: language of logging 'en', language of email receiver 'es', reset language of current user 'de'
|
||||||
|
|
||||||
if (!CONFIG.EMAIL) {
|
if (!CONFIG.EMAIL) {
|
||||||
@ -113,6 +113,7 @@ export const sendEmailTranslated = async ({
|
|||||||
})
|
})
|
||||||
.catch((error: unknown) => {
|
.catch((error: unknown) => {
|
||||||
logger.error('Error sending notification email', error)
|
logger.error('Error sending notification email', error)
|
||||||
|
return error
|
||||||
})
|
})
|
||||||
|
|
||||||
return resultSend
|
return resultSend
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user