Use AND in SQL query instead of &&

styling-fixes
Pancakes 2 months ago
parent a1263e66c6
commit ea4ba75c93
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

@ -276,7 +276,7 @@ func RetrieveSystemSaveFromS3(uuid []byte) error {
func RetrieveOldAccounts() ([][]byte, error) { func RetrieveOldAccounts() ([][]byte, error) {
var users [][]byte 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 { if err != nil {
return nil, err return nil, err
} }

Loading…
Cancel
Save