feat: changed to module.exports

This commit is contained in:
Randell Dawson
2018-11-11 23:52:00 -08:00
committed by mrugesh mohapatra
parent 76c23be416
commit 2ae521c995
14 changed files with 36 additions and 31 deletions

View File

@@ -5,7 +5,9 @@ const octokit = require('@octokit/rest')(octokitConfig);
octokit.authenticate(octokitAuth);
exports.getStatuses = async function getStatuses (method, methodProps) {
const getStatuses = async function getStatuses (method, methodProps) {
const { data } = await method(methodProps);
return data
}
return data;
};
module.exports = { getStatuses }