Skip to content

Commit d616c7f

Browse files
committed
figure out why doesn't parse
1 parent 5f891dd commit d616c7f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/api/routes/stripe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ const stripeRoutes: FastifyPluginAsync = async (fastify, _options) => {
285285
payload: {
286286
to: [unmarshalledEntry.invoiceId],
287287
subject: `Payment Recieved for Invoice ${unmarshalledEntry.invoiceId}`,
288-
content: `Received payment of ${paymentAmount} ${paymentCurrency} by ${name} (${email}) for invoice ID ${unmarshalledEntry.invoiceId}. Please contact [email protected] with any questions.`,
288+
content: `Received payment of ${withCurrency} by ${name} (${email}) for invoice ID ${unmarshalledEntry.invoiceId}. Please contact [email protected] with any questions.`,
289289
},
290290
};
291291
if (!fastify.sqsClient) {

src/api/sqs/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ export const handler = middy()
6060
{ sqsMessageId: record.messageId },
6161
parsedBody.toString(),
6262
);
63+
logger.error(
64+
{ sqsMessageId: record.messageId },
65+
parsedBody.errors.toString(),
66+
);
6367
throw new ValidationError({
6468
message: "Could not parse SQS payload",
6569
});

0 commit comments

Comments
 (0)