import { Resource } from '../api-resource';

export default new Resource({
  name: 'contentnode',
  fetchDescendantsCollection(id, getParams = {}) {
    return this.fetchDetailCollection('descendants', id, getParams);
  },
  fetchCopies(content_id) {
    return this.fetchDetailCollection('copies', content_id);
  },
  fetchCopiesCount(getParams = {}) {
    return this.fetchListCollection('copies_count', getParams);
  },
  fetchNextContent(id) {
    return this.fetchDetailModel('next_content', id);
  },
});

import { Resource } from '../api-resource';

export default new Resource({
  name: 'contentnode',
  fetchDescendantsCollection(id, getParams = {}) {
    return this.fetchDetailCollection('descendants', id, getParams);
  },
  fetchCopies(content_id) {
    return this.fetchDetailCollection('copies', content_id);
  },
  fetchCopiesCount(getParams = {}) {
    return this.fetchListCollection('copies-count', getParams);
  },
  fetchNextContent(id) {
    return this.fetchDetailModel('next_content', id);
  },
});

--- 
+++ 
@@ -9,7 +9,7 @@
     return this.fetchDetailCollection('copies', content_id);
   },
   fetchCopiesCount(getParams = {}) {
-    return this.fetchListCollection('copies-count', getParams);
+    return this.fetchListCollection('copies_count', getParams);
   },
   fetchNextContent(id) {
     return this.fetchDetailModel('next_content', id);
Fix error showing up in search
