diff --git a/lib/certificates/set.js b/lib/certificates/set.js index 4805c11..028fa36 100644 --- a/lib/certificates/set.js +++ b/lib/certificates/set.js @@ -3,7 +3,7 @@ const s3 = new AWS.S3({ apiVersion: "2006-03-01" }); const pathHelper = require("../pathHelper"); const fileNames = require("../fileNames"); -setObjects = (opts, options) => { +const getObjects = (opts, options) => { return [ { Key: pathHelper.certificatesPath(options, opts.subject, fileNames.cert) @@ -24,7 +24,7 @@ setObjects = (opts, options) => { ]; }; -setPromises = (objects, options) => { +const getPromises = (objects, options) => { let promises = []; for (let i = 0; i < objects.length; i++) { @@ -44,8 +44,8 @@ setPromises = (objects, options) => { module.exports.set = (opts, options) => { console.log("certificates.set for ", opts.subject); - const objects = setObjects(opts, options); - const promises = setPromises(objects, options); + const objects = getObjects(opts, options); + const promises = getPromises(objects, options); return Promise.all(promises).then((values) => { return null;