Github 'Not Found' for unplublished entries means there are no unpublished entries
This commit is contained in:
@ -100,6 +100,12 @@ export default class GitHub {
|
||||
}));
|
||||
});
|
||||
return Promise.all(promises);
|
||||
})
|
||||
.catch((error) => {
|
||||
if (error.message === 'Not Found') {
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
return error;
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user