Skip to content

Commit 2f5b708

Browse files
committed
fix: add channel & use unique sourceId
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
1 parent bdc9da9 commit 2f5b708

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • services/apps/snowflake_connectors/src/integrations/committees/committees

services/apps/snowflake_connectors/src/integrations/committees/committees/transformer.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,24 @@ export class CommitteesCommitteesTransformer extends TransformerBase {
8686
? (row.CREATEDDATE as string | null) || null
8787
: (row.FIVETRAN_SYNCED as string | null) || null
8888

89+
const committeeName = (row.COMMITTEE_NAME as string | null) || null
90+
8991
const activity: IActivityData = {
9092
type,
9193
platform: PlatformType.COMMITTEES,
9294
timestamp: activityTimestamp,
9395
score: COMMITTEES_GRID[type].score,
94-
sourceId: committeeId,
96+
sourceId: `${committeeId}-${row.SFID}`,
9597
sourceParentId: null,
98+
channel: committeeName,
9699
member: {
97100
displayName,
98101
identities,
99102
organizations: this.buildOrganizations(row),
100103
},
101104
attributes: {
102105
committeeId: (row.COLLABORATION_NAME__C as string | null) || null,
103-
committeeName: (row.COMMITTEE_NAME as string | null) || null,
106+
committeeName,
104107
role: (row.ROLE__C as string | null) || null,
105108
projectId: (row.PROJECT_ID as string | null) || null,
106109
projectName: (row.PROJECT_NAME as string | null) || null,

0 commit comments

Comments
 (0)