diff --git a/api/daily/common.go b/api/daily/common.go index 187db34..a3bc753 100644 --- a/api/daily/common.go +++ b/api/daily/common.go @@ -132,7 +132,7 @@ func S3SaveMigration() error { } // retrieve accounts from db - accounts, err := db.RetrieveOldAccounts() + accounts, err := db.GetLocalAccounts() if err != nil { return fmt.Errorf("failed to retrieve old accounts: %s", err) } diff --git a/db/savedata.go b/db/savedata.go index e5de022..6b5b4b0 100644 --- a/db/savedata.go +++ b/db/savedata.go @@ -259,9 +259,9 @@ func GetSystemSaveFromS3(uuid []byte) (defs.SystemSaveData, error) { return session, nil } -func RetrieveOldAccounts() ([][]byte, error) { +func GetLocalAccounts() ([][]byte, error) { var users [][]byte - rows, err := handle.Query("SELECT uuid FROM accounts WHERE isInLocalDb = 1 AND lastActivity < DATE_SUB(NOW(), INTERVAL 3 MONTH) LIMIT 3000") + rows, err := handle.Query("SELECT uuid FROM accounts WHERE isInLocalDb = 1) LIMIT 3000") if err != nil { return nil, err }