feat: changed to module.exports
This commit is contained in:
committed by
mrugesh mohapatra
parent
76c23be416
commit
2ae521c995
@@ -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 }
|
||||
|
Reference in New Issue
Block a user