Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: delete connections after 24h of inactivity #70

Merged
merged 8 commits into from
May 24, 2024

Conversation

dev-737
Copy link
Member

@dev-737 dev-737 commented May 24, 2024

This pull request adds a new feature to delete connections after 24 hours of inactivity. It includes changes to the Scheduler class to add a new method 'hasTask', a deletion script, modifications to the buildConnectionButtons function, changes to the SuperClient class to store message timestamps, modifications to the ConnectedList module to add a new collection for message timestamps, and updates to the ReactionUpdater class to handle inactive connection reconnections. This feature improves the efficiency and management of connections in the application.

Copy link

deepsource-io bot commented May 24, 2024

Here's the code health analysis summary for commits 2036974..c45a5bd. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ Success
🎯 2 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@dev-737 dev-737 self-assigned this May 24, 2024
@dev-737 dev-737 added the feature New feature or request label May 24, 2024
Copy link
Member Author

@dev-737 dev-737 left a comment

Choose a reason for hiding this comment

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

Beautiful code 10/10

@dev-737 dev-737 merged commit 43476dc into main May 24, 2024
2 checks passed
@dev-737 dev-737 deleted the delete_inactive_connections branch May 24, 2024 09:28
Copy link

sentry-io bot commented May 24, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ **PrismaClientKnownRequestError: ** modifyConnection(ConnectedList.ts) View Issue
  • ‼️ DiscordAPIError[10062]: Unknown interaction inactiveConnect(RandomComponents.ts) View Issue
  • ‼️ TypeError: Cannot read properties of null (reading 'id') default(storeMessageData.ts) View Issue
  • ‼️ **PrismaClientKnownRequestError: ** modifyConnection(ConnectedList.ts) View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant