Get rid of lots of unnecessary lodash calls.

This commit is contained in:
baldo 2022-07-28 13:16:13 +02:00
parent b734a422a7
commit 5592892f0d
16 changed files with 99 additions and 115 deletions
server/services

View file

@ -97,7 +97,7 @@ export async function render(mailOptions: Mail): Promise<{subject: string, body:
try {
return {
subject: _.trim(_.template(subject.toString())(data)),
subject: _.template(subject.toString())(data).trim(),
body: _.template(body.toString())(data)
};
} catch (error) {