Remove fields that won't be used in the frontend for now

This commit is contained in:
nymkappa
2022-02-10 10:25:14 +09:00
parent aa0e6b807a
commit b8e40494aa
4 changed files with 12 additions and 16 deletions

View File

@@ -34,7 +34,7 @@ class BlocksRepository {
block.size,
block.weight,
block.tx_count,
block.extras?.coinbaseHex ?? '',
'',
block.difficulty,
block.extras?.pool?.id, // Should always be set to something
0,

View File

@@ -7,7 +7,7 @@ class PoolsRepository {
*/
public async $getPools(): Promise<PoolTag[]> {
const connection = await DB.pool.getConnection();
const [rows] = await connection.query('SELECT * FROM pools;');
const [rows] = await connection.query('SELECT id, name, addresses, regexes FROM pools;');
connection.release();
return <PoolTag[]>rows;
}
@@ -17,7 +17,7 @@ class PoolsRepository {
*/
public async $getUnknownPool(): Promise<PoolTag> {
const connection = await DB.pool.getConnection();
const [rows] = await connection.query('SELECT * FROM pools where name = "Unknown"');
const [rows] = await connection.query('SELECT id, name FROM pools where name = "Unknown"');
connection.release();
return <PoolTag>rows[0];
}