mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
only delete accounts that haven't updated expiry in over 2 hours
This commit is contained in:
parent
06465ebf19
commit
2304015aac
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ func evalScript(ctx context.Context, redisConn *redis.Client) (string, error) {
|
|||
}
|
||||
|
||||
func cleanAccounts(ctx context.Context, logger *logrus.Logger, pool *pgxpool.Pool) {
|
||||
now := time.Now().Unix()
|
||||
now := time.Now().Unix() - 7200
|
||||
count := 0
|
||||
ids := []int64{}
|
||||
|
||||
|
|
Loading…
Reference in a new issue