Fix pool component hashrate api response handling

This commit is contained in:
nymkappa committed 2022-04-23 15:51:00 +09:00
1 parent f3fa5f3e33
commit 0cbcffe96d
2 files changed
+2 -2

No files matched your search

@@ -102,7 +102,7 @@ class HashratesRepository {
/**
* Returns a pool hashrate history
*/
public async $getPoolWeeklyHashrate(slug: string): Promise<any[]> {
public async $getPoolWeeklyHashrate(slug: string): Promise<any[]> {
const pool = await PoolsRepository.$getPool(slug);
if (!pool) {
throw new Error(`This mining pool does not exist`);