@org/source
    Preparing search index...

    Function orderEmailHandler

    • Processes SQS order messages: sends a templated order confirmation via SES and stores a copy in S3.

      The handler validates each record, skips invalid messages, avoids resending when a copy is already marked sent, and marks stored copies with pending then sent status as it progresses.

      Parameters

      • event: SQSEvent

        The SQS event containing order message records to process

      Returns Promise<void>