function deleteAllRevisionsWithThing(user) {

  let p1 = this
    .deleteAllRevisions(user, {
      tags: ['delete-with-thing']
    });

  // We rely on the thing property having been populated. This will fail on
  // a shallow Review object!
  let p2 = this.thing
    .deleteAllRevisions(user, {
      tags: ['delete-via-review']
    });

  return Promise.all([p1, p2]);

}
/**
 * Delete all revisions of a review including the associated review subject
 * (thing).
 *
 * @param {User} user
 *  user initiating the action
 * @returns {Promise}
 *  promise that resolves when all content has been deleted
 * @memberof Review
 * @instance
 */
Delete all revisions of a review including the associated review subject
(thing).

@param {User} user
user initiating the action
@returns {Promise}
promise that resolves when all content has been deleted
@memberof Review
@instance
Delete all revisions of a review including the associated review subject ( thing ) . @param { User } user user initiating the action @returns { Promise } promise that resolves when all content has been deleted @memberof Review @instance
function deleteAllRevisionsWithThing(user) {
  let p1 = this
    .deleteAllRevisions(user, {
      tags: ['delete-with-thing']
    });
  let p2 = this.thing
    .deleteAllRevisions(user, {
      tags: ['delete-via-review']
    });
  return Promise.all([p1, p2]);
}
function deleteAllRevisionsWithThing ( user ) { let p1 = this . deleteAllRevisions ( user , { tags : [ 'delete-with-thing' ] } ) ; let p2 = this . thing . deleteAllRevisions ( user , { tags : [ 'delete-via-review' ] } ) ; return Promise . all ( [ p1 , p2 ] ) ; }
Delete all revisions of a review including the associated review subject
 (thing).
Delete all revisions of a review including the associated review subject ( thing ) .
// We rely on the thing property having been populated. This will fail on // a shallow Review object!