|
|
|
@ -108,7 +108,7 @@ module.exports = function(pConfig) { |
|
|
|
function BOB_updateConfig() { |
|
|
|
BOB_mod_fs.readdir(BOB_cfg_config.paths.template, function(pErr, pFiles) { |
|
|
|
if( pErr ) { |
|
|
|
console.log(pErr); |
|
|
|
console.log("BOB_updateConfig", "Path:", BOB_cfg_config.paths.template, pErr); |
|
|
|
} else { |
|
|
|
BOB_mod_async.map(pFiles, |
|
|
|
function(pFile, pCb) { |
|
|
|
@ -124,7 +124,7 @@ function BOB_updateConfig() { |
|
|
|
// Get reslution of current template
|
|
|
|
BOB_mod_gm(BOB_cfg_config.booths[boothName].template).size(function(pErr, pValue){ |
|
|
|
if( pErr ) { |
|
|
|
console.log(pErr); |
|
|
|
console.log("[ERROR] Get template size", pErr); |
|
|
|
} else { |
|
|
|
BOB_cfg_config.booths[boothName].resolution = pValue; |
|
|
|
BOB_generatePictLayout(boothName); |
|
|
|
|