[PR #675] [MERGED] feature: update address updated_at in multi api #694

Closed
opened 2026-02-26 21:32:29 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/675
Author: @dreamhunter2333
Created: 6/20/2025
Status: Merged
Merged: 6/20/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • 89fb32a feature: update address updated_at in multi api

📊 Changes

2 files changed (+36 additions, -9 deletions)

View changed files

📝 worker/src/mails_api/index.ts (+26 -9)
📝 worker/src/user_api/settings.ts (+10 -0)

📄 Description

PR Type

enhancement, bug fix


Description

  • Add updateAddressUpdatedAt function to update updated_at field.

  • Refactor code to use updateAddressUpdatedAt function.

  • Handle missing address gracefully in updateAddressUpdatedAt.

  • Improve error handling with warnings for failed updates.


Changes walkthrough 📝

Relevant files
Enhancement
index.ts
Enhance address update logic and error handling                   

worker/src/mails_api/index.ts

  • Add updateAddressUpdatedAt function for updating timestamps.
  • Refactor existing code to use the new function.
  • Improve error handling with warnings.
  • Update logic for offset handling in mail retrieval.
  • +26/-9   
    settings.ts
    Update user address timestamps and error handling               

    worker/src/user_api/settings.ts

  • Add logic to update updated_at for user addresses.
  • Improve error handling with warnings for failed updates.
  • Import UserBindAddressModule.
  • +11/-0   

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.

  • 🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

    ## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/675 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 6/20/2025 **Status:** ✅ Merged **Merged:** 6/20/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`89fb32a`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/89fb32ae51bdedf17df90b2c5f1c18215690d342) feature: update address updated_at in multi api ### 📊 Changes **2 files changed** (+36 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `worker/src/mails_api/index.ts` (+26 -9) 📝 `worker/src/user_api/settings.ts` (+10 -0) </details> ### 📄 Description ### **PR Type** enhancement, bug fix ___ ### **Description** - Add `updateAddressUpdatedAt` function to update `updated_at` field. - Refactor code to use `updateAddressUpdatedAt` function. - Handle missing address gracefully in `updateAddressUpdatedAt`. - Improve error handling with warnings for failed updates. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>index.ts</strong><dd><code>Enhance address update logic and error handling</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/mails_api/index.ts <li>Add <code>updateAddressUpdatedAt</code> function for updating timestamps.<br> <li> Refactor existing code to use the new function.<br> <li> Improve error handling with warnings.<br> <li> Update logic for offset handling in mail retrieval. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/675/files#diff-83710df6a60b2b512e134f32ad9890ab9a255040f6019f0d5603f72f4561cea4">+26/-9</a>&nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>settings.ts</strong><dd><code>Update user address timestamps and error handling</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/user_api/settings.ts <li>Add logic to update <code>updated_at</code> for user addresses.<br> <li> Improve error handling with warnings for failed updates.<br> <li> Import <code>UserBindAddressModule</code>. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/675/files#diff-0e41b1cd8b40c15de837bee6cf774f29499e490f0b565b0f5556b549f7344dd3">+11/-0</a>&nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:32:29 +03:00
    Sign in to join this conversation.
    No milestone
    No project
    No assignees
    1 participant
    Notifications
    Due date
    The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

    No due date set.

    Dependencies

    No dependencies set.

    Reference
    starred/cloudflare_temp_email#694
    No description provided.