Sorting by closing date descending

This commit is contained in:
softsimon 2023-07-18 17:19:14 +09:00
parent d74e4b1876
commit 67f58a4491
No known key found for this signature in database
GPG key ID: 488D7DCFB5A430D7

View file

@ -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;