Fixed username in save message.
This commit is contained in:
parent
d8059b4173
commit
35ca8ccdd1
|
@ -47,10 +47,15 @@ async function writeToIndex(posts, profilePaths, user, args) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const yamlIndex = yaml.safeDump(data);
|
const yamlIndex = yaml.safeDump(data);
|
||||||
|
const saved = await save(filepath, Buffer.from(yamlIndex, 'utf8'));
|
||||||
|
|
||||||
return save(filepath, Buffer.from(yamlIndex, 'utf8'));
|
console.log(user);
|
||||||
|
|
||||||
|
logger.info(`Saved index with ${posts.length} new posts for ${user.name}`);
|
||||||
|
|
||||||
|
return saved;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`Could not save index for ${user.username}: ${error.message}`);
|
logger.error(`Could not save index for ${user.name}: ${error.message}`);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue