Request as a service instead of required()
This commit is contained in:
parent
c1336ea1cd
commit
da8aa18a1b
2 changed files with 7 additions and 3 deletions
|
|
@ -1,8 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
var request = require('request');
|
||||
|
||||
var RateService = function() {
|
||||
var RateService = function(request) {
|
||||
this.isAvailable = false;
|
||||
this.SAT_TO_BTC = 1 / 1e8;
|
||||
this.queued = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue