Node graphs

This commit is contained in:
softsimon
2022-07-02 16:46:57 +02:00
parent d8a39f2e49
commit f46543b264
8 changed files with 436 additions and 14 deletions

View File

@@ -15,7 +15,7 @@ class NodesApi {
public async $getNodeStats(public_key: string): Promise<any> {
try {
const query = `SELECT * FROM node_stats WHERE public_key = ? ORDER BY added DESC`;
const query = `SELECT UNIX_TIMESTAMP(added) AS added, capacity, channels FROM node_stats WHERE public_key = ? ORDER BY added DESC`;
const [rows]: any = await DB.query(query, [public_key]);
return rows;
} catch (e) {