mirror of
https://github.com/status-im/autobounty.git
synced 2025-01-27 14:05:06 +00:00
getLabel function renamed to getLabels
This commit is contained in:
parent
36ce30c714
commit
9d12c228e8
@ -30,7 +30,7 @@ const getAddress = function(req) {
|
||||
}
|
||||
|
||||
const getLabel = function(req) {
|
||||
return github.getLabel(req).then(labels => {
|
||||
return github.getLabels(req).then(labels => {
|
||||
if (labels.length === 1) {
|
||||
return labels[0];
|
||||
} else {
|
||||
@ -45,7 +45,7 @@ const getLabel = function(req) {
|
||||
|
||||
const getAmount = function(req) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let labelPromise = getLabel(req);
|
||||
let labelPromise = getLabels(req);
|
||||
let tokenPricePromise = prices.getTokenPrice(config.token);
|
||||
|
||||
Promise.all([labelPromise, tokenPricePromise])
|
||||
|
Loading…
x
Reference in New Issue
Block a user