Print description to console

This commit is contained in:
Marco van Dijk 2022-10-07 16:07:11 +02:00
parent de5eceac98
commit fac9afa4a5

View File

@ -70,12 +70,12 @@ async function generateRocketeer(id) {
// Generate, compile and upload image // Generate, compile and upload image
const { NODE_ENV: mode } = process.env; const { NODE_ENV: mode } = process.env;
let path; let path = "./output/" + id;
if (mode == "production") { // if (mode == "production") {
path = "/var/www/avatars/" + id; // path = "/var/www/avatars/" + id;
} else { // } else {
path = "./output/" + id; // path = "./output/" + id;
} // }
rocketeer.image = await svgFromAttributes(rocketeer.attributes, path); rocketeer.image = await svgFromAttributes(rocketeer.attributes, path);
// Namify the attributes // Namify the attributes
@ -87,7 +87,7 @@ async function generateRocketeer(id) {
}; };
}); });
return rocketeer.name + ": `" + "' @ " + rocketeer.image; return rocketeer.name + ": `" + rocketeer.description + "' @ " + rocketeer.image;
} }
module.exports = { module.exports = {