fix(core): address new entries error for non-github backends (#2390)
This commit is contained in:
parent
aecd08ba2f
commit
a5bd6b3e89
@ -413,7 +413,10 @@ export default class GitGateway {
|
||||
return this.backend.unpublishedEntries();
|
||||
}
|
||||
unpublishedEntry(collection, slug) {
|
||||
return this.backend.unpublishedEntry(collection, slug);
|
||||
return (
|
||||
(this.backend.unpublishedEntry && this.backend.unpublishedEntry(collection, slug)) ||
|
||||
Promise.resolve(false)
|
||||
);
|
||||
}
|
||||
updateUnpublishedEntryStatus(collection, slug, newStatus) {
|
||||
return this.backend.updateUnpublishedEntryStatus(collection, slug, newStatus);
|
||||
|
Loading…
x
Reference in New Issue
Block a user