Skip to content

Commit

Permalink
include secondary id
Browse files Browse the repository at this point in the history
  • Loading branch information
skwowet committed Sep 13, 2024
1 parent 473cee2 commit 50420ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ const membersMerge: LogRenderingConfig = {
label: 'Profiles unmerged',
changes: (log) => {
const primary = log.oldState?.primary;
const secondary = log.newState?.secondary;
const merged = log.newState?.primary;
return {
removals: merged ? [
`${primary?.displayName}<span> ・ ID: ${primary?.id}</span>`,
`${secondary?.displayName}<span> ・ ID: ${secondary?.id}</span>`,
] : [],
additions: merged ? [
`${merged?.displayName || primary?.displayName}<span> ・ ID: ${merged?.id || primary?.id}</span>`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ const organizationsMerge: LogRenderingConfig = {
label: 'Organizations unmerged',
changes: (log) => {
const primary = log.oldState?.primary;
const secondary = log.newState?.secondary;
const merged = log.newState?.primary;
return {
removals: merged ? [
`${primary?.displayName}<span> ・ ID: ${primary?.id}</span>`,
`${secondary?.displayName}<span> ・ ID: ${secondary?.id}</span>`,
] : [],
additions: merged ? [
`${merged?.displayName || primary.displayName}<span> ・ ID: ${merged?.id || primary.id}</span>`,
Expand Down

0 comments on commit 50420ac

Please sign in to comment.