Skip to content

Conversation

@paustint
Copy link
Contributor

@paustint paustint commented Jan 9, 2026

Extend the retention period for login and email activity logs to 365 days and 180 days, respectively, to improve logging activity management.

Copilot AI review requested due to automatic review settings January 9, 2026 01:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the retention periods for authentication and email activity logs by splitting the original single retention period into two separate constants with different values.

  • Renamed DELETE_ACTIVITY_DAYS to DELETE_AUTH_ACTIVITY_DAYS with a value of 365 days (previously 30 days)
  • Added DELETE_EMAIL_ACTIVITY_DAYS constant with a value of 180 days
  • Updated the pruneExpiredRecords function to use the new constants appropriately for login and email activity cleanup

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
libs/auth/server/src/lib/auth.constants.ts Replaced single DELETE_ACTIVITY_DAYS constant with two separate constants: DELETE_AUTH_ACTIVITY_DAYS (365 days) and DELETE_EMAIL_ACTIVITY_DAYS (180 days)
libs/auth/server/src/lib/auth.db.service.ts Updated imports and the pruneExpiredRecords function to use the new separate retention constants for login and email activities

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants