Skip to content

Commit

Permalink
Extracted out helper function.
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Mar 11, 2024
1 parent 2cf5667 commit 60e3091
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ fun printsSampleDocData(trigger: Trigger): Boolean {
// TODO: Consider excluding `{{ctx}}` from criteria for bucket-level triggers as printing all of
// their sample documents could make the notification message too large to send.
action.messageTemplate.idOrCode.contains("{{ctx}}") ||
action.messageTemplate.idOrCode.contains(AlertContext.SAMPLE_DOCS_FIELD)
action.messageTemplate.idOrCode.contains(AlertContext.SAMPLE_DOCS_FIELD)
}
}

Expand Down

0 comments on commit 60e3091

Please sign in to comment.