From ea4ba75c93cbcc273dbffea84e34396f40009f1a Mon Sep 17 00:00:00 2001 From: Pancakes Date: Wed, 23 Oct 2024 08:28:40 -0400 Subject: [PATCH] Use AND in SQL query instead of && --- db/savedata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/savedata.go b/db/savedata.go index 3814ead..4974c4c 100644 --- a/db/savedata.go +++ b/db/savedata.go @@ -276,7 +276,7 @@ func RetrieveSystemSaveFromS3(uuid []byte) error { func RetrieveOldAccounts() ([][]byte, error) { var users [][]byte - rows, err := handle.Query("SELECT uuid FROM accounts WHERE isInLocalDb = 1 && lastActivity < DATE_SUB(NOW(), INTERVAL 3 MONTH) LIMIT 3000") + rows, err := handle.Query("SELECT uuid FROM accounts WHERE isInLocalDb = 1 AND lastActivity < DATE_SUB(NOW(), INTERVAL 3 MONTH) LIMIT 3000") if err != nil { return nil, err }