refactor: 💡 replace store.findAll with store.query (#2002)

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11825
This commit is contained in:
Lisbet Alvarez authored and Zhihe Li committed 2024-01-16 10:17:45 -05:00
1 parent 6ae3067dd9
commit 776c46f129
6 files changed
+5 -20

No files matched your search

-10
View File
@@ -106,16 +106,6 @@ export default class ApplicationAdapter extends RESTAdapter.extend(
return dasherize(pluralize(type));
}
/**
* Intercepts "empty" responses and adds an empty `items` array.
* @override
* @method findAll
* @return {Promise} promise
*/
findAll() {
return super.findAll(...arguments).then(prenormalizeArrayResponse);
}
/**
* Intercepts "empty" responses and adds an empty `items` array.
* This query method now supports pagination by checking the responseType and