diff --git a/app/models/index.js b/app/models/index.js index 4e37f97..8b377dd 100644 --- a/app/models/index.js +++ b/app/models/index.js @@ -31,11 +31,6 @@ export default class Index { }; } - // TODO: replace to getSetting - getSortableAttributes() { - return query(`${this.path}/settings/sortable-attributes`); - } - getStats() { return query(`${this.path}/stats`); } diff --git a/app/routes/admin/indexes/item/documents/index.js b/app/routes/admin/indexes/item/documents/index.js index 793bd9f..e03a4ba 100644 --- a/app/routes/admin/indexes/item/documents/index.js +++ b/app/routes/admin/indexes/item/documents/index.js @@ -68,7 +68,7 @@ export default class AdminIndexesItemDocumentsIndexRoute extends Route { index, searchSchema, data: index.search(options), - sortableAttributes: index.getSortableAttributes(), + sortableAttributes: index.getSetting('sortable-attributes'), displayedAttributes: index.getSetting('displayed-attributes'), stats: index.getStats(), });