Skip to content

[FEATURE] Finish users ban (cron) #59

@andreaflether

Description

@andreaflether

Please describe the problem to be solved

Currently, when a user is banned, the ban is not automatically over, because there is no logic applied to the ends_at field.

(Optional): Suggest a solution

  • Add cron job that runs every day at 23:59 to set banned = false in User model.
  • Additionally, set ban date to end of day {CURRENT_DATE} + 7.days.end_of_day, instead of {CURRENT_DATE} + 7.days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions