Skip to content

Commit acb4918

Browse files
committed
fix(kafka): remove mandatory key from custom
1 parent 123ad69 commit acb4918

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

DEPLOYMENT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,4 @@ This allows you to:
319319
- [ECS Task Definitions](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html)
320320
- [GitHub Actions OIDC](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services)
321321

322+

internal/custom-kafka-to-flexprice.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ pipeline:
3939
this.methodName != null && this.methodName != "" &&
4040
this.providerName != null && this.providerName != "" &&
4141
this.id != null && this.id != "" &&
42-
this.startedAt != null && this.startedAt != "" &&
43-
this.key != null && this.key != ""
42+
this.startedAt != null && this.startedAt != ""
4443
)
4544
4645
root = if $valid { this } else { deleted() }
@@ -52,7 +51,7 @@ pipeline:
5251
root.event_name = this.targetItemType.string() + "-" + this.methodName.string() + "-" + this.providerName.string()
5352
root.event_id = this.id.string()
5453
root.timestamp = this.startedAt.string()
55-
root.source = this.key.string()
54+
if this.targetItemId != null { root.source = this.targetItemId.string() }
5655
5756
# Start with `data` fields (extract values from key-value objects, otherwise stringify)
5857
root.properties = if this.data != null && this.data.type() == "object" {

0 commit comments

Comments
 (0)