refactor: 💡 Update storage bucket route to use recursive (#150)

This commit is contained in:
Zhihe Li authored and GitHub committed 2023-03-24 11:51:55 -04:00
1 parent 85f2561a72
commit 581d49ab76
1 file changed
+2 -2
@@ -28,7 +28,7 @@ export default class ScopesScopeStorageBucketsRoute extends Route {
/**
* Load all storage buckets under current scope.
* @return {Promise{[StorageBucketModel]}}
* @return {Promise<[StorageBucketModel]>}
*/
async model() {
const scope = this.modelFor('scopes.scope');
@@ -38,7 +38,7 @@ export default class ScopesScopeStorageBucketsRoute extends Route {
collection: 'storage-buckets',
})
) {
return this.store.query('storage-bucket', { scope_id });
return this.store.query('storage-bucket', { scope_id, recursive: true });
}
}