Skip to content

Commit

Permalink
Fixed sending auth code
Browse files Browse the repository at this point in the history
  • Loading branch information
ravirajput10 committed Oct 10, 2024
1 parent 9f3fb2a commit 8673f58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web/graphql/mails/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export async function createTemplateAndSendMail({
loginLink: `${ctx.address}/login`,
courseName: course.title,
name: course.creatorName || ctx.subdomain.settings.title || "",
hideCourseLitBranding: ctx.subdomain.settings.hideCourseLitBranding,
hideCourseLitBranding: ctx.subdomain.settings?.hideCourseLitBranding,
});

await send({
Expand Down
2 changes: 1 addition & 1 deletion apps/web/graphql/users/logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export const inviteCustomer = async (
courseName: course.title,
loginLink: `${ctx.address}/login`,
hideCourseLitBranding:
ctx.subdomain.settings.hideCourseLitBranding,
ctx.subdomain.settings?.hideCourseLitBranding,
});

await send({
Expand Down
2 changes: 1 addition & 1 deletion apps/web/pages/api/auth/code/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default async function handler(
try {
const emailBody = pug.render(MagicCodeEmailTemplate, {
code,
hideCourseLitBranding: domain.settings.hideCourseLitBranding,
hideCourseLitBranding: domain.settings?.hideCourseLitBranding,
});
await send({
to: [sanitizedEmail],
Expand Down

0 comments on commit 8673f58

Please sign in to comment.