-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into NDT-731-Enable-multiple-Global-Search-options
- Loading branch information
Showing
9 changed files
with
92 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import * as Sentry from '@sentry/nextjs'; | ||
import getConfig from 'next/config'; | ||
import toTitleCase from '../../../utils/formatString'; | ||
import config from '../../../config'; | ||
import toTitleCase from '../../../utils/formatString'; | ||
|
||
const CHES_API_URL = config.get('CHES_API_URL'); | ||
const namespace = getConfig()?.publicRuntimeConfig?.OPENSHIFT_APP_NAMESPACE; | ||
|
||
const sendEmail = async ( | ||
token: string, | ||
|
@@ -14,15 +13,16 @@ const sendEmail = async ( | |
tag: string, | ||
emailCC: string[] = [] | ||
) => { | ||
const environment = toTitleCase(namespace?.split('-')[1] || 'Dev'); | ||
const namespace = getConfig()?.publicRuntimeConfig?.OPENSHIFT_APP_NAMESPACE; | ||
const environment = toTitleCase(namespace?.split('-')[1] || ''); | ||
try { | ||
const request = { | ||
bodyType: 'html', | ||
body, | ||
cc: emailCC, | ||
delayTs: 0, | ||
encoding: 'utf-8', | ||
from: `CCBC Portal ${environment !== 'Prod' && environment} <[email protected]>`, | ||
from: `CCBC Portal ${environment} <[email protected]>`, | ||
priority: 'normal', | ||
subject, | ||
to: emailTo, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import * as Sentry from '@sentry/nextjs'; | ||
import getConfig from 'next/config'; | ||
import toTitleCase from '../../../utils/formatString'; | ||
import config from '../../../config'; | ||
import toTitleCase from '../../../utils/formatString'; | ||
|
||
const CHES_API_URL = config.get('CHES_API_URL'); | ||
const namespace = getConfig()?.publicRuntimeConfig?.OPENSHIFT_APP_NAMESPACE; | ||
|
||
export interface Context { | ||
to: string[]; | ||
|
@@ -22,14 +21,15 @@ const sendEmailMerge = async ( | |
subject: string, | ||
contexts: Contexts | ||
) => { | ||
const namespace = getConfig()?.publicRuntimeConfig?.OPENSHIFT_APP_NAMESPACE; | ||
const environment = toTitleCase(namespace?.split('-')[1] || 'Dev'); | ||
try { | ||
const request = { | ||
bodyType: 'html', | ||
body, | ||
contexts, | ||
encoding: 'utf-8', | ||
from: `CCBC Portal ${environment !== 'Prod' && environment} <[email protected]>`, | ||
from: `CCBC Portal ${environment} <[email protected]>`, | ||
priority: 'normal', | ||
subject, | ||
attachments: [], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -802,3 +802,6 @@ tables/application_map_data 2025-01-28T17:53:59Z Rafael Solorzano <61289255+rafa | |
@1.235.1 2025-02-03T22:52:39Z CCBC Service Account <[email protected]> # release v1.235.1 | ||
@1.236.0 2025-02-04T16:28:48Z CCBC Service Account <[email protected]> # release v1.236.0 | ||
@1.237.0 2025-02-05T16:25:22Z CCBC Service Account <[email protected]> # release v1.237.0 | ||
@1.237.1 2025-02-06T04:18:26Z CCBC Service Account <[email protected]> # release v1.237.1 | ||
@1.237.2 2025-02-06T16:41:46Z CCBC Service Account <[email protected]> # release v1.237.2 | ||
@1.238.0 2025-02-06T17:33:57Z CCBC Service Account <[email protected]> # release v1.238.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "CONN-CCBC-portal", | ||
"version": "1.237.0", | ||
"version": "1.238.0", | ||
"main": "index.js", | ||
"repository": "https://github.com/bcgov/CONN-CCBC-portal.git", | ||
"author": "Romer, Meherzad CITZ:EX <[email protected]>", | ||
|