Skip to content

fix: refresh correct lastRequest field on connection reuse (#42)#150

Merged
parth0025 merged 1 commit into
stagingfrom
fix/issue-42-mongo-lastrequest-typo
May 15, 2026
Merged

fix: refresh correct lastRequest field on connection reuse (#42)#150
parth0025 merged 1 commit into
stagingfrom
fix/issue-42-mongo-lastrequest-typo

Conversation

@parth0025
Copy link
Copy Markdown
Collaborator

updateConnectionRecord was writing to lastRequset (typo) while the idle-cleanup loop in startInterval reads lastRequest. Active company databases therefore kept the timestamp frozen at createdAt and were eligible for termination after the 30-minute window despite continuous use. Fixed the property name so the update path and the cleanup path reference the same field.

Closes #42

Pull Request Template Chooser

Please click the link that matches your contribution type to load the correct format.

Note: Clicking a link will reload this page and clear any text you've already typed here.

  • Bug Fix
    Use this for fixing broken logic or UI glitches.

  • New Feature
    Use this for adding new functionality or components.

  • Refactor
    Use this for code cleanup, performance tweaks, or technical debt.


General Summary

If you don't want to use a specific template, please provide a brief summary of your changes below.

updateConnectionRecord was writing to lastRequset (typo) while the
idle-cleanup loop in startInterval reads lastRequest. Active company
databases therefore kept the timestamp frozen at createdAt and were
eligible for termination after the 30-minute window despite continuous
use. Fixed the property name so the update path and the cleanup path
reference the same field.

Closes #42

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@parth0025 parth0025 self-assigned this May 15, 2026
@parth0025 parth0025 merged commit 24e1b29 into staging May 15, 2026
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.

1 participant