Skip to content

Commit

Permalink
Merge pull request #7734 from opengovsg/release-v6.149.2
Browse files Browse the repository at this point in the history
build: release 6.149.2
  • Loading branch information
kevin9foong authored Sep 27, 2024
2 parents ec58886 + e865ad8 commit 0d4280f
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 13 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v6.149.1](https://github.com/opengovsg/FormSG/compare/v6.149.1...v6.149.1)
#### [v6.149.2](https://github.com/opengovsg/FormSG/compare/v6.149.1...v6.149.2)

- fix: mrf visual issues [`#7728`](https://github.com/opengovsg/FormSG/pull/7728)
- fix: ses default configset [`#7733`](https://github.com/opengovsg/FormSG/pull/7733)
- build: release 6.149.1 [`#7729`](https://github.com/opengovsg/FormSG/pull/7729)
- feat: explicitly specify configset [`f4c78cb`](https://github.com/opengovsg/FormSG/commit/f4c78cb0d342bb1c6241602910dc711ee6703815)

#### [v6.149.1](https://github.com/opengovsg/FormSG/compare/v6.149.0...v6.149.1)

> 26 September 2024

- fix: mrf visual issues [`#7728`](https://github.com/opengovsg/FormSG/pull/7728)
- build: release v6.149.0 [`#7725`](https://github.com/opengovsg/FormSG/pull/7725)
- chore: bump version to 6.149.1 [`395ea11`](https://github.com/opengovsg/FormSG/commit/395ea112620a767920af2674bf2b30119664577f)
- chore: bump version to 6.149.1 [`ccfd1ec`](https://github.com/opengovsg/FormSG/commit/ccfd1ec21d59024bfec4534af4a96886ca61168c)

#### [v6.149.0](https://github.com/opengovsg/FormSG/compare/v6.148.0...v6.149.0)

Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "form-frontend",
"version": "6.149.1",
"version": "6.149.2",
"homepage": ".",
"private": true,
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "FormSG",
"description": "Form Manager for Government",
"version": "6.149.1",
"version": "6.149.2",
"homepage": "https://form.gov.sg",
"authors": [
"FormSG <[email protected]>"
Expand Down
1 change: 1 addition & 0 deletions src/app/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ const mailConfig: MailConfig = (function () {
official,
mailer,
transporter,
sesConfigSet: prodOnlyVars.sesConfigSet,
}
})()

Expand Down
7 changes: 7 additions & 0 deletions src/app/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,13 @@ export const prodOnlyVarsSchema: Schema<IProdOnlyVarsSchema> = {
env: 'SES_PASS',
sensitive: true,
},
sesConfigSet: {
doc: 'Config set for SES when sending email',
format: String,
default: null,
env: 'SES_CONFIG_SET',
sensitive: true,
},
dbHost: {
doc: 'Database URI',
format: (val) => {
Expand Down
19 changes: 15 additions & 4 deletions src/app/services/mail/mail.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,21 @@ export class MailService {
}

return ResultAsync.fromPromise(
this.#sendMailWithRetries(mail, {
mailId: sendOptions?.mailId,
formId: sendOptions?.formId,
}),
this.#sendMailWithRetries(
{
...mail,
headers: config.mail.sesConfigSet
? {
'X-SES-CONFIGURATION-SET': config.mail.sesConfigSet,
...mail.headers,
}
: mail.headers,
},
{
mailId: sendOptions?.mailId,
formId: sendOptions?.formId,
},
),
(error) => {
logger.error({
message: 'Error returned from sendMail retries',
Expand Down
2 changes: 2 additions & 0 deletions src/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export type MailConfig = {
}
official: string
transporter: Mail
sesConfigSet: string
}

export type RateLimitConfig = {
Expand Down Expand Up @@ -121,6 +122,7 @@ export interface IProdOnlyVarsSchema {
user: string
pass: string
dbHost: string
sesConfigSet: string
}

export interface ICompulsoryVarsSchema {
Expand Down

0 comments on commit 0d4280f

Please sign in to comment.