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

Implemented cronjob for message deletion #207

Merged
merged 10 commits into from
Apr 12, 2024

Conversation

fmcubium
Copy link
Collaborator

@fmcubium fmcubium commented Apr 1, 2024

Cron-job for message deletion has now been implemented. The current deletion interval is set to 30s for development and testing purposes.

In addition, there is now a new .env variable that is required to be created: message_duration. Set it to 60000 for now.

Also, added firebase-secrets.json to the .gitignore to avoid it getting tangled up in commits.

Fixes #157.

server/.gitignore Show resolved Hide resolved
server/src/actions/deleter.ts Outdated Show resolved Hide resolved
server/src/index.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@AlexanderWangY AlexanderWangY left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@AlexanderWangY AlexanderWangY merged commit dcc7f5f into ufosc:main Apr 12, 2024
2 checks passed
@fmcubium fmcubium deleted the deleter-NEW branch September 19, 2024 22:42
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.

Making CRON job to delete old messages from firebase
2 participants