Compare commits
2 Commits
d8059b4173
...
3f905c6c54
Author | SHA1 | Date |
---|---|---|
ThePendulum | 3f905c6c54 | |
ThePendulum | 35ca8ccdd1 |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ripunzel",
|
||||
"version": "1.24.0",
|
||||
"version": "1.24.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ripunzel",
|
||||
"version": "1.24.0",
|
||||
"version": "1.24.1",
|
||||
"description": "Web content archiving tool, with versatile filename patterns and extensive options for reddit user profiles.",
|
||||
"main": "app.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -47,10 +47,15 @@ async function writeToIndex(posts, profilePaths, user, args) {
|
|||
|
||||
try {
|
||||
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) {
|
||||
logger.error(`Could not save index for ${user.username}: ${error.message}`);
|
||||
logger.error(`Could not save index for ${user.name}: ${error.message}`);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue