Add nodes per network chart component

This commit is contained in:
nymkappa authored and wiz committed 2022-07-10 16:22:53 +02:00
1 parent b7709ac3d0
commit d2135a374a
10 files changed
+657 -66

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import DB from '../../database';
class StatisticsApi {
public async $getStatistics(): Promise<any> {
try {
const query = `SELECT UNIX_TIMESTAMP(added) AS added, channel_count, node_count, total_capacity FROM lightning_stats ORDER BY id DESC`;
const query = `SELECT UNIX_TIMESTAMP(added) AS added, channel_count, node_count, total_capacity, tor_nodes, clearnet_nodes, unannounced_nodes FROM lightning_stats ORDER BY id DESC`;
const [rows]: any = await DB.query(query);
return rows;
} catch (e) {