Skip to content

Commit

Permalink
Merge c96a6f6 into db654e0
Browse files Browse the repository at this point in the history
  • Loading branch information
Pchelolo committed May 21, 2019
2 parents db654e0 + c96a6f6 commit e1c0cad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sys/parsoid.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,15 @@ class ParsoidService {
res.body = JSON.parse(res.body.toString('utf8'));
return res;
})
.catch({ status: 404 }, grabContentFromOldLatestBucket);
.catch({ status: 404 }, () =>
grabContentFromOldLatestBucket()
.tap((res) => {
this.saveParsoidResultToLatest(hyper, domain, title, res)
.catch((e) => hyper.logger.log('parsoid/copyover', {
msg: 'Failed to copy latest Parsoid data',
e
}));
}));
} else if (!tid) {
return hyper.get({ uri: this.getLatestBucketURI(domain, title) })
.then((res) => {
Expand Down

0 comments on commit e1c0cad

Please sign in to comment.