Skip to content

Clean all subscriptions for inactive chats #280

@Dankoy

Description

@Dankoy

Is your feature request related to a problem? Please describe.
When chat is inactive, then after a 6 months, its subscriptions should be removed. Alongside with sent registry.

Describe the solution you'd like
Add a scheduler job to check chats with subscriptions with last modified date - 6 months and remove all subscriptions with sent registry.

Describe alternatives you've considered
Maybe check chats with modified date - 3 months.

Additional context
Subscriptions scheduler microservice could be used for that. Also don't forget to use async scheduler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestjavaPull requests that update Java codemediumMedium priority

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions