Skip to content

Commit

Permalink
Delete revisions on a new render creation
Browse files Browse the repository at this point in the history
Change-Id: Ib6f6632af9b35026ebbbb7e2fbaaf3edc3cdee58
  • Loading branch information
Pchelolo authored and d00rman committed Aug 1, 2018
1 parent a76be8e commit b002ed4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sys/multi_content_bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,10 @@ class MultiContentBucket {
})
.then((res) => {
if (res.body.items.length) {
return this._deleteRenders(hyper, req, rev, res.body.items[0].tid);
return P.all(
this._deleteRenders(hyper, req, rev, res.body.items[0].tid),
this._deleteRevisions(hyper, req, rev - 1)
);
}
});
})
Expand Down

0 comments on commit b002ed4

Please sign in to comment.