@jtff/miztemplate-lib
Version:
JTFF mission template library
14 lines (12 loc) • 398 B
JavaScript
function gdriveupload(jtffci) {
let intRC = 0;
if (process.env.GDRIVE_TOKEN_CACHE_JSON) {
const gcreds = JSON.parse(process.env.GDRIVE_TOKEN_CACHE_JSON);
jtffci.publishMizFiles(gcreds);
} else {
console.error('no google drive credentials provided in GDRIVE_TOKEN_CACHE_JSON variable');
intRC = 1;
}
return intRC;
}
module.exports = gdriveupload