Luke Childs
5 years ago
4 changed files with 5 additions and 6 deletions
@ -1,5 +1,5 @@ |
|||
const fetch = require('isomorphic-fetch'); |
|||
const sendJson = require('../send-json'); |
|||
const sendJson = require('./util/send-json'); |
|||
|
|||
const getData = async endpoint => fetch( |
|||
`https://whattomine.com/${endpoint}.json` |
@ -1,7 +1,6 @@ |
|||
const sendJson = require('../send-json'); |
|||
|
|||
const getNiceHashData = require('../nicehash/nicehash'); |
|||
const getCoinData = require('../coins/coins'); |
|||
const sendJson = require('./util/send-json'); |
|||
const getNiceHashData = require('./nicehash'); |
|||
const getCoinData = require('./coins'); |
|||
|
|||
const getData = async () => { |
|||
const [nicehashAlgorithms, coins] = await Promise.all([ |
@ -1,5 +1,5 @@ |
|||
const fetch = require('isomorphic-fetch'); |
|||
const sendJson = require('../send-json'); |
|||
const sendJson = require('./util/send-json'); |
|||
|
|||
const SECONDS = 1; |
|||
const MINUTES = SECONDS * 60; |
Loading…
Reference in new issue