Skip to content

Commit

Permalink
Email
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Nov 15, 2023
1 parent d7e2ebd commit fb6de1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dashboard/src/jobs/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ client.defineJob({

const notificationEvents = await Promise.all(
usersData?.flatMap(async ({ user, team_id }) => {
const t = getI18n({ locale: user.locale });
const { t } = getI18n({ locale: user.locale });

return transactionsData.map((transaction) => ({
name: TriggerEvents.TransactionNewInApp,
Expand Down Expand Up @@ -184,7 +184,7 @@ client.defineJob({

const emailEvents = await Promise.all(
usersData?.map(async ({ user, team_id }) => {
const t = getI18n({ locale: user.locale });
const { t } = getI18n({ locale: user.locale });

const html = await renderAsync(
TransactionsEmail({
Expand Down

0 comments on commit fb6de1e

Please sign in to comment.