Skip to content

Commit

Permalink
💬 Update to Slack Message (#67)
Browse files Browse the repository at this point in the history
Update to Slack Message
  • Loading branch information
Gary-H9 authored May 13, 2024
1 parent b064991 commit ae2c050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/var/task/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def handler(event, context): # pylint: disable=unused-argument
if supplier_config["slack_channel"]:
send_slack(
slack_channel=supplier_config["slack_channel"],
message=f"A file uploaded by `{supplier}` has been transferred to `{supplier_config['target_bucket']}`.\n • `{destination_object_key}`",
message=f"A file uploaded by `{supplier}` has been transferred to `{supplier_config['target_bucket'].split('/')[0]}`.\n • `{destination_object_key}`",
)
else:
print(f"No Slack channel configured for `{supplier}`")
Expand Down

0 comments on commit ae2c050

Please sign in to comment.