Skip to content

fix: update workspace chat lastUpdatedAt - #6288

Open
AbarnaaSree wants to merge 1 commit into
Mintplex-Labs:masterfrom
AbarnaaSree:fix/workspace-chat-last-updated-at
Open

fix: update workspace chat lastUpdatedAt#6288
AbarnaaSree wants to merge 1 commit into
Mintplex-Labs:masterfrom
AbarnaaSree:fix/workspace-chat-last-updated-at

Conversation

@AbarnaaSree

Copy link
Copy Markdown

Pull Request Type

  • ✨ feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

resolves #6282

Description

This PR fixes the workspace chat lastUpdatedAt field not being synchronized when an existing chat is updated.

The WorkspaceChats._update() method now automatically sets lastUpdatedAt to the current timestamp while preserving the existing update data.

A regression test has also been added to verify that lastUpdatedAt is updated correctly.

Visuals (if applicable)

Not applicable — this is a backend change.

Additional Information

The change is limited to the workspace chat update flow and does not modify the Prisma schema.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • I have tested my code functionality
  • Docker build succeeds locally

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.

[FEAT]: Synchronize workspace chat LastUpdatedAt field when Chat is updated

1 participant