π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix typo
vishnukvmd1375b4df1281
diff --git a/server/cmd/museum/main.go b/server/cmd/museum/main.goindex 5b1671619e..0824cc8581 100644--- a/server/cmd/museum/main.go+++ b/server/cmd/museum/main.go@@ -5,7 +5,6 @@ import ("database/sql"b64 "encoding/base64""fmt"- "github.com/ente-io/museum/pkg/controller/collections""net/http""os""os/signal"@@ -15,6 +14,8 @@ import ("syscall""time"+ "github.com/ente-io/museum/pkg/controller/collections"+"github.com/ente-io/museum/ente/base""github.com/ente-io/museum/pkg/controller/emergency""github.com/ente-io/museum/pkg/controller/file_copy"@@ -920,8 +921,8 @@ func setupAndStartCrons(userAuthRepo *repo.UserAuthRepository, publicCollectionR})schedule(c, "@every 24h", func() {- _ = userAuthRepo.RemoveDeletedTokens(timeUtil.MicrosecondBeforeDays(30))- _ = castDb.DeleteOldSessions(context.Background(), timeUtil.MicrosecondBeforeDays(7))+ _ = userAuthRepo.RemoveDeletedTokens(timeUtil.MicrosecondsBeforeDays(30))+ _ = castDb.DeleteOldSessions(context.Background(), timeUtil.MicrosecondsBeforeDays(7))_ = publicCollectionRepo.CleanupAccessHistory(context.Background())})diff --git a/server/pkg/utils/time/time.go b/server/pkg/utils/time/time.goindex 69749a96a8..362deb5983 100644--- a/server/pkg/utils/time/time.go+++ b/server/pkg/utils/time/time.go@@ -38,8 +38,8 @@ func MicrosecondsAfterDays(noOfDays int) int64 {return Microseconds() + int64(noOfDays*24)*MicroSecondsInOneHour}-// MicrosecondBeforeDays returns the time in micro seconds before noOfDays-func MicrosecondBeforeDays(noOfDays int) int64 {+// MicrosecondsBeforeDays returns the time in micro seconds before noOfDays+func MicrosecondsBeforeDays(noOfDays int) int64 {return Microseconds() - int64(noOfDays*24)*MicroSecondsInOneHour}