upgrade yggstate db query

This commit is contained in:
ghost 2023-08-11 00:35:03 +03:00
parent ab0391e29e
commit 6085677e67

View File

@ -66,10 +66,10 @@ class YGGstate {
$query = $this->_db->prepare('SELECT * FROM `peer`
HAVING (
SELECT `peerRemote`.`uptime`
FROM `peerRemote`
WHERE `peerRemote`.`peerId` = `peer`.`peerId`
ORDER BY `timeAdded` DESC
SELECT `peerSession`.`uptime`
FROM `peerSession`
WHERE `peerSession`.`peerId` = `peer`.`peerId`
ORDER BY `peerSession`.`peerSessionId` DESC
LIMIT 1
) >= ?');