Skip to content

Commit

Permalink
Merge pull request #324 from seattleflu/feature/bencap/synchronize-re…
Browse files Browse the repository at this point in the history
…dcap-deletions

Only Send Slack Message if Deletions Exist
  • Loading branch information
bencap authored May 18, 2023
2 parents 9fa4a29 + d9a24f5 commit fdc3a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/id3c/cli/command/redcap_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def delete(

# Post any record deletion events to Slack to provide insight into
# potential data deletions.
if post_to_slack:
if post_to_slack and deleted_redcap_record_identifiers:
payload = {
"text": "REDCap Logging API found records that may require deletion from ID3C",
"blocks": [
Expand Down

0 comments on commit fdc3a17

Please sign in to comment.