Use AND in SQL query instead of &&

This commit is contained in:
Pancakes 2024-10-23 08:28:40 -04:00
parent a1263e66c6
commit ea4ba75c93
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

View File

@ -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
}