1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: critical bug with data retention / cleanup

This commit is contained in:
Ferdinand Mütsch
2022-12-30 13:32:05 +01:00
parent 8e521741f8
commit 731598fa38
2 changed files with 8 additions and 8 deletions

View File

@ -52,7 +52,7 @@ func (s *HousekeepingService) Schedule() {
user := *u
s.queueWorkers.Dispatch(func() {
if err := s.CleanUserDataBefore(&user, u.MinDataAge()); err != nil {
if err := s.CleanUserDataBefore(&user, user.MinDataAge()); err != nil {
config.Log().Error("failed to clear old user data for '%s'", user.ID)
}
})