mirror of
https://github.com/mempool/mempool.git
synced 2025-02-22 14:22:44 +01:00
Sorting by closing date descending
This commit is contained in:
parent
d74e4b1876
commit
67f58a4491
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ class ChannelsApi {
|
|||
LEFT JOIN nodes AS n1 ON n1.public_key = channels.node1_public_key
|
||||
LEFT JOIN nodes AS n2 ON n2.public_key = channels.node2_public_key
|
||||
WHERE channels.status = 2 AND channels.closing_reason = 3
|
||||
ORDER BY closing_date DESC
|
||||
`;
|
||||
const [rows]: any = await DB.query(query);
|
||||
return rows;
|
||||
|
|
Loading…
Add table
Reference in a new issue