Skip to content

Commit

Permalink
fix not showing diff when no entities are specified
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanKiral committed Nov 20, 2024
1 parent 9da88a5 commit 11f2c2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/sync/diff/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ const syncDiffCli = async (params: syncDiffCliParams) => {

try {
const diffModel = await syncDiffInternal(resolvedParams, commandName);
return params.advanced !== undefined

return params.advanced
? createAdvancedDiffFile({ ...diffModel, ...resolvedParams })
: printDiff(diffModel, new Set(params.entities), params);
: printDiff(diffModel, new Set(resolvedParams.entities), params);
} catch (e) {
logError(params, e instanceof Error ? e.message : JSON.stringify(e));
process.exit(1);
Expand Down

0 comments on commit 11f2c2a

Please sign in to comment.