Skip to content

Commit

Permalink
revert: refactor(infer): consolidate two main functions (#637)
Browse files Browse the repository at this point in the history
Reverts #617

@patricebender @stewsk #617 breaks cds ci
  • Loading branch information
sjvans authored May 12, 2024
1 parent d557dab commit 31abd96
Show file tree
Hide file tree
Showing 3 changed files with 785 additions and 724 deletions.
2 changes: 1 addition & 1 deletion db-service/lib/cqn4sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@ function cqn4sql(originalQuery, model) {
transformedFrom.$refLinks.splice(0, transformedFrom.$refLinks.length - 1)

let args = from.ref.at(-1).args
const subquerySource = getDefinition(transformedFrom.$refLinks[0].definition.target) || transformedFrom.$refLinks[0].target
const subquerySource = transformedFrom.$refLinks[0].target
if (subquerySource.params && !args) args = {}
const id = localized(subquerySource)
transformedFrom.ref = [args ? { id, args } : id]
Expand Down
Loading

0 comments on commit 31abd96

Please sign in to comment.