Skip to content

Commit

Permalink
fix: verification-link variable with small typo (#8073)
Browse files Browse the repository at this point in the history
  • Loading branch information
computationalcore authored Sep 9, 2021
1 parent 5e3d69a commit d9afc20
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exports.handler = async event => {
'sa-east-1',
];

const seperator = hyphenRegions.includes(region) ? '-' : '.';
const separator = hyphenRegions.includes(region) ? '-' : '.';

const payload = Buffer.from(
JSON.stringify({
Expand All @@ -28,7 +28,7 @@ exports.handler = async event => {
clientId,
}),
).toString('base64');
const bucketUrl = `http://${resourcePrefix}verificationbucket-${process.env.ENV}.s3-website${seperator}${region}.amazonaws.com`;
const bucketUrl = `http://${resourcePrefix}verificationbucket-${process.env.ENV}.s3-website${separator}${region}.amazonaws.com`;
const url = `${bucketUrl}/?data=${payload}&code=${codeParameter}`;
const message = `${process.env.EMAILMESSAGE}. \n ${url}`;
event.response.smsMessage = message;
Expand Down

0 comments on commit d9afc20

Please sign in to comment.