Skip to content

Commit ce234db

Browse files
committed
fixes part 3
1 parent 93d049d commit ce234db

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/api/routes/roomRequests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ const roomRequestRoutes: FastifyPluginAsync = async (fastify, _options) => {
251251
},
252252
payload: {
253253
to: [notificationRecipients[fastify.runEnvironment].OfficerBoard],
254-
subject: "A new room request has been created",
255-
content: `${request.username} created a room reservation request. Please log into the ACM management portal for more information.\n\n\nACM @ UIUC Core`,
254+
subject: "New Room Reservation Request",
255+
content: `A new room reservation request has been created (${request.body.host} | ${request.body.title}). Please visit https://${fastify.environmentConfig["UserFacingUrl"]}/roomRequests/${request.body.semester}/${requestId} to view details.`,
256256
},
257257
};
258258
if (!fastify.sqsClient) {

src/api/sqs/emailNotifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const emailNotificationsHandler: SQSHandlerFunction<
1515
AvailableSQSFunctions.EmailNotifications
1616
> = async (payload, metadata, logger) => {
1717
const { to, cc, bcc, content, subject } = payload;
18-
const senderEmail = `notifications@${currentEnvironmentConfig["EmailDomain"]}`;
18+
const senderEmail = `ACM @ UIUC <notifications@${currentEnvironmentConfig["EmailDomain"]}>`;
1919
logger.info("Constructing email...");
2020
const command = new SendEmailCommand({
2121
Source: senderEmail,

src/common/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type ValueOrArray<T> = T | ArrayOfValueOrArray<T>;
99
type AzureRoleMapping = Record<string, readonly AppRoles[]>;
1010

1111
export type ConfigType = {
12+
UserFacingUrl: string;
1213
AzureRoleMapping: AzureRoleMapping;
1314
ValidCorsOrigins: ValueOrArray<OriginType> | OriginFunction;
1415
AadValidClientId: string;
@@ -80,6 +81,7 @@ const genericConfig: GenericConfigType = {
8081

8182
const environmentConfig: EnvironmentConfigType = {
8283
dev: {
84+
UserFacingUrl: "https://core.aws.qa.acmuiuc.org",
8385
AzureRoleMapping: { AutonomousWriters: [AppRoles.EVENTS_MANAGER] },
8486
ValidCorsOrigins: [
8587
"https://merch-pwa.pages.dev",
@@ -99,6 +101,7 @@ const environmentConfig: EnvironmentConfigType = {
99101
PaidMemberPriceId: "price_1R4TcTDGHrJxx3mKI6XF9cNG",
100102
},
101103
prod: {
104+
UserFacingUrl: "https://core.acm.illinois.edu",
102105
AzureRoleMapping: { AutonomousWriters: [AppRoles.EVENTS_MANAGER] },
103106
ValidCorsOrigins: [
104107
/^https:\/\/(?:.*\.)?acmuiuc-academic-web\.pages\.dev$/,

0 commit comments

Comments
 (0)