Skip to content

Commit

Permalink
Use AND in SQL query instead of &&
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Oct 23, 2024
1 parent a1263e6 commit ea4ba75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/savedata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ea4ba75

Please sign in to comment.