old_contents: import calculateParamOffset from 'helpers/calculateParamOffset';
  import sanitizeParamLimit from 'helpers/sanitizeParamLimit';
  
  export default ({ limit, page }) => {
    const saneLimit = sanitizeParamLimit(limit);
  
    return {
      resolve: 'city,owner',
      sort: '-created',
      offset: calculateParamOffset(page, saneLimit),
      limit: saneLimit
    };
  };
  
new_contents: import calculateParamOffset from 'helpers/calculateParamOffset';
  import sanitizeParamLimit from 'helpers/sanitizeParamLimit';
  
  export default ({ limit, page }) => {
    const saneLimit = sanitizeParamLimit(limit);
  
    return {
      resolve: 'city,owner',
      sort: '-created',
      offset: calculateParamOffset(page, saneLimit),
      limit: saneLimit,
      state: [
        'supportable.active',
        'supportable.winner',
        'loser',
        'processing.*',
        'closed'
      ]
    };
  };
  
subject: Add state querying to petitions listing