[server] Refresh fileCount only if trash or usage changed

This commit is contained in:
Neeraj Gupta
2024-08-27 12:01:00 +05:30
parent f67516f696
commit e32facf3e6
5 changed files with 49 additions and 10 deletions

View File

@@ -14,6 +14,8 @@ import (
// Avoid adding any direct dependencies to the other controller.
type Controller struct {
FileRepo *repo.FileRepository
UsageRepo *repo.UsageRepository
TrashRepo *repo.TrashRepository
StoreBonusRepo *storagebonus.Repository
UserCache *cache.UserCache
}