Compare commits

..

No commits in common. "3f905c6c54458f0237138d6b8ce712a87e789569" and "d8059b41737df5763b2a3e9523d1841799e5c3ba" have entirely different histories.

3 changed files with 4 additions and 9 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "ripunzel", "name": "ripunzel",
"version": "1.24.1", "version": "1.24.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "ripunzel", "name": "ripunzel",
"version": "1.24.1", "version": "1.24.0",
"description": "Web content archiving tool, with versatile filename patterns and extensive options for reddit user profiles.", "description": "Web content archiving tool, with versatile filename patterns and extensive options for reddit user profiles.",
"main": "app.js", "main": "app.js",
"scripts": { "scripts": {

View File

@ -47,15 +47,10 @@ 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'));
console.log(user); return save(filepath, Buffer.from(yamlIndex, 'utf8'));
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.name}: ${error.message}`); logger.error(`Could not save index for ${user.username}: ${error.message}`);
return null; return null;
} }
} }