mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-02-03 18:35:04 +00:00
upgrade yggstate db query
This commit is contained in:
parent
ab0391e29e
commit
6085677e67
@ -66,10 +66,10 @@ class YGGstate {
|
|||||||
$query = $this->_db->prepare('SELECT * FROM `peer`
|
$query = $this->_db->prepare('SELECT * FROM `peer`
|
||||||
|
|
||||||
HAVING (
|
HAVING (
|
||||||
SELECT `peerRemote`.`uptime`
|
SELECT `peerSession`.`uptime`
|
||||||
FROM `peerRemote`
|
FROM `peerSession`
|
||||||
WHERE `peerRemote`.`peerId` = `peer`.`peerId`
|
WHERE `peerSession`.`peerId` = `peer`.`peerId`
|
||||||
ORDER BY `timeAdded` DESC
|
ORDER BY `peerSession`.`peerSessionId` DESC
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
) >= ?');
|
) >= ?');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user