We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e70b9a7 commit 8621bb1Copy full SHA for 8621bb1
packages/endpoint-syndicate/lib/utils.js
@@ -87,8 +87,13 @@ export const syndicateToTargets = async (publication, properties) => {
87
try {
88
const syndicatedUrl = await target.syndicate(properties, publication);
89
90
- // Add syndicated URL to list of syndicated URLs
91
- syndicatedUrls.push(syndicatedUrl);
+ if (syndicatedUrl) {
+ // Add syndicated URL to list of syndicated URLs
92
+ syndicatedUrls.push(syndicatedUrl);
93
+ } else {
94
+ // Add failed syndication target to list of failed targets
95
+ failedTargets.push(target.info.uid);
96
+ }
97
} catch (error) {
98
// Add failed syndication target to list of failed targets
99
failedTargets.push(target.info.uid);
0 commit comments