getAudits (query) {
    return new Promise((resolve, reject) => {
      fetch(`api/audits/${paramStr(query)}`).then((response) => {
        if (!response.ok) { // test for bad response code
          throw new Error(response.statusText);
        }
        return response.json();
      }).then((response) => {
        return resolve(response.audits);
      }).catch((err) => { // this catches an issue within the ^ .then
        return reject(err);
      });
    });
  }
Fetches the list of audit log entries that a user can view.
@param {Object} query of shape { searchTerm, startMs, stopMs }
@returns {Promise} - The promise that either resolves to an `Audit[]` or rejects in error