Skip to content

Commit

Permalink
chore: revises logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikrut committed Oct 7, 2021
1 parent fc72257 commit ae93006
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const resaveChildren = (options: Options, collection: CollectionConfig): Collect
depth: 0,
});

children.docs.forEach((child) => {
try {
try {
children.docs.forEach((child) => {
payload.update({
id: child.id,
collection: collection.slug,
Expand All @@ -24,11 +24,10 @@ const resaveChildren = (options: Options, collection: CollectionConfig): Collect
},
depth: 0,
});
} catch (err) {
console.error(`Page ${child.title} failed to update`);
console.error(err);
}
});
});
} catch (err) {
console.error(err);
}
};

// Non-blocking
Expand Down

0 comments on commit ae93006

Please sign in to comment.