Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Schedule storage warning mailer

Neeraj Guptadbd98cf49536
diff --git a/server/cmd/museum/main.go b/server/cmd/museum/main.go
index 42c242cffc..841f47b561 100644
--- a/server/cmd/museum/main.go
+++ b/server/cmd/museum/main.go
@@ -203,6 +203,10 @@ func main() {
emailNotificationCtrl := &email.EmailNotificationController{
UserRepo: userRepo,
+ UsageRepo: usageRepo,
+ BillingRepo: billingRepo,
+ StorageBonusRepo: storagBonusRepo,
+ DiscordController: discordController,
LockController: lockController,
NotificationHistoryRepo: notificationHistoryRepo,
}
@@ -1200,6 +1204,10 @@ func setupAndStartCrons(userAuthRepo *repo.UserAuthRepository, collectionLinkRep
inactiveUserOrchestrator.ProcessInactiveUsers()
})
+ scheduleAndRun(c, "@every 24h", func() {
+ emailNotificationCtrl.SendStorageWarningMails()
+ })
+
schedule(c, "@every 1m", func() {
pushController.SendPushes()
})