Skip to content

Conversation

@ArtyomSavchenko
Copy link
Member

No description provided.

Signed-off-by: Artem Savchenko <armisav@gmail.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the mail headers format by updating the type definition for MailMessage.headers to support multiple header formats and introduces a new function to return headers as a record instead of an array.

  • Updated MailMessage.headers type to support both record and array formats with flexible value types
  • Created new getMailHeadersRecord function that returns headers as a Record<string, string>
  • Updated mail worker to use the new header function for consistent record format

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
services/mail/pod-mail-worker/src/types.ts Defines new Headers type and updates MailMessage.headers property type
services/mail/pod-mail-worker/src/mailWorker.ts Updates import and function call to use new getMailHeadersRecord function
services/mail/mail-common/src/utils.ts Adds new getMailHeadersRecord function that returns headers as a record

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Signed-off-by: Artem Savchenko <armisav@gmail.com>
@ArtyomSavchenko ArtyomSavchenko merged commit d2d1589 into develop Aug 14, 2025
14 of 15 checks passed
@aonnikov aonnikov deleted the qfix/huly-mail-headers branch September 4, 2025 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants