/**
* Generates Audits object with methods using passed api
* @param {object} api Valid api object
* @returns {object} audits Methods to interact with audits on API
*/
export default function Audits(api) {
  return {
    /**
    * Returns all audits, with options.
    * @param {object} opts Options object
    * @param {string} opts.since Modified since date (ISO datestring)
    * @param {string} opts.order Order of audits, default 'asc'
    * @returns {Promise} Resolves to array of audits ids and modified_at fields,
    *                    Rejects with an error from API.
    */
    findAll: ({ since, order } = {}) =>
      api.get('/audits/search', {
        qs: {
          modified_after: since,
          field: ['audit_id', 'modified_at'],
          order: order ? order : 'asc'
        }
      })
      .then(body => body.audits)
  };
}

@@ -618,22 +618,16 @@
 = %7B%7D) =%3E
-%0A     
  api.get
@@ -657,18 +657,14 @@
     
-  
 qs: %7B%0A
-  
     
@@ -698,18 +698,16 @@
         
-  
 field: %5B
@@ -742,18 +742,16 @@
         
-  
 order: o
@@ -781,23 +781,17 @@
     
- 
- 
 %7D%0A
-  
     %7D)%0A
-  
     

Modify CS of audits