From 9d12c228e81db8d91f6b6e1003891c7f24632bc0 Mon Sep 17 00:00:00 2001 From: Jordi Montes Date: Mon, 22 Jan 2018 23:44:31 +0100 Subject: [PATCH] getLabel function renamed to getLabels --- bot/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/index.js b/bot/index.js index 2d206c0..f28e6a0 100644 --- a/bot/index.js +++ b/bot/index.js @@ -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])