Skip to content

Commit

Permalink
Temporary copy over the data from old buckets
Browse files Browse the repository at this point in the history
Change-Id: I00a48d0affbfd1dc9e4b2822333af0ff056ccf3f
  • Loading branch information
Pchelolo committed May 21, 2019
1 parent db654e0 commit 05e2fc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sys/parsoid.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,11 @@ 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);
}));
} else if (!tid) {
return hyper.get({ uri: this.getLatestBucketURI(domain, title) })
.then((res) => {
Expand Down

0 comments on commit 05e2fc9

Please sign in to comment.