Skip to content

Commit

Permalink
fix: Add union check in isChangeTracked function (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
JocelynGu135 authored Dec 15, 2023
1 parent c59a281 commit 728f932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cds-plugin.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const cds = require('@sap/cds')

const isChangeTracked = (entity) => (
entity['@changelog']
|| entity.elements && Object.values(entity.elements).some(e => e['@changelog'])
(entity['@changelog']
|| entity.elements && Object.values(entity.elements).some(e => e['@changelog'])) && entity.query?.SET?.op !== 'union'
)


Expand Down

0 comments on commit 728f932

Please sign in to comment.