Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jdinh8124 committed Jan 23, 2025
1 parent accdf8b commit e29154a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/libs/email/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export function getEmailTemplate(
action: keyof EmailTemplates,
): AuthoritiesWithUserTypesTemplate | UserTypeOnlyTemplate {
// Handle -state suffix variants
console.log("inside get email templ",action)
const baseAction = action.replace(/-state$/, "") as keyof EmailTemplates;
return emailTemplates[baseAction];
}
Expand All @@ -84,6 +85,7 @@ export async function getEmailTemplates<T>(
action: keyof EmailTemplates,
authority: Authority,
): Promise<EmailTemplateFunction<T>[] | null> {
console.log('before get template')
const template = getEmailTemplate(action || "new-medicaid-submission");
if (!template) {
console.log("No template found");
Expand Down

0 comments on commit e29154a

Please sign in to comment.