Skip to content

Conversation

@aakashreddy-p
Copy link
Contributor

@aakashreddy-p aakashreddy-p commented Oct 14, 2025

Description

I have setup the auto downgrade restriction for teams. I have setup email template as well for downgrade in this.

Add Issue Number

Fixes #jira

image

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • I have linked an issue to the pull request.
  • I have linked a PR type label to the pull request.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.

@aakashreddy-p aakashreddy-p self-assigned this Oct 14, 2025
@aakashreddy-p aakashreddy-p added the pr-feature This PR adds a new feature label Oct 14, 2025
@aakashreddy-p aakashreddy-p changed the title feat: auto downgrade restriction for Team SPRW-2185. feat: auto downgrade restriction for Team with Email Templates. SPRW-2185. Oct 15, 2025
Comment on lines 61 to 68
const workspaceData = await this.downgradeWorkspaceReposiory.get(
workspace.id.toString(),
);
const updatedUsers = workspaceData.users.filter(
(user) => user.id !== payload.userId,
);
await this.downgradeWorkspaceReposiory.updateWorkspaceUsers(
workspace.id.toString(),
Copy link
Member

Choose a reason for hiding this comment

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

also need to handle admins field in workspace model

Copy link
Contributor Author

Choose a reason for hiding this comment

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

resolved.

@itsmdasifraza itsmdasifraza merged commit bd855f0 into sparrowapp-dev:release/2.34.0 Oct 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants