Skip to content

Commit

Permalink
fix(oca): Fix retriving nested references
Browse files Browse the repository at this point in the history
  • Loading branch information
mitfik committed Jan 11, 2024
1 parent ae7752e commit 877c4b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oca/src/facade/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ impl Facade {
let mut dep_bundles = vec![];
if with_dep {
for refs in self.retrive_all_references(oca_bundle.clone()) {
// TODO(recursion) retrive nested objects as well
let dep_bundle = self.get_oca_bundle(refs, false)?;
let dep_bundle = self.get_oca_bundle(refs, true)?;
dep_bundles.push(dep_bundle.bundle);
dep_bundles.extend(dep_bundle.dependencies);
}
}
let result = BundleWithDependencies {
Expand Down

0 comments on commit 877c4b9

Please sign in to comment.