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

+1 -1
View File
@@ -35,7 +35,7 @@ export default class ScopesRoute extends Route {
});
// NOTE: In the absence of a `scope_id` query parameter, this endpoint is
// expected to default to the global scope, thus returning org scopes.
return this.store.findAll('scope').catch(() => A([]));
return this.store.query('scope', {}).catch(() => A([]));
}
/**