You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`,
256
+
},
257
+
};
258
+
if(!fastify.sqsClient){
259
+
fastify.sqsClient=newSQSClient({
260
+
region: genericConfig.AwsRegion,
261
+
});
262
+
}
263
+
constresult=awaitfastify.sqsClient.send(
264
+
newSendMessageCommand({
265
+
QueueUrl: fastify.environmentConfig.SqsQueueUrl,
266
+
MessageBody: JSON.stringify(sqsPayload),
267
+
}),
268
+
);
269
+
if(!result.MessageId){
270
+
request.log.error(result);
271
+
thrownewInternalServerError({
272
+
message: "Could not add room reservation email to queue.",
273
+
});
274
+
}
275
+
request.log.info(
276
+
`Queued room reservation email to SQS with message ID ${result.MessageId}`,
0 commit comments