From 08311642768564ad62ab153d12c412ed8265f631 Mon Sep 17 00:00:00 2001 From: cmaddox5 Date: Mon, 18 Nov 2024 08:52:43 -0500 Subject: [PATCH] Temp code for testing job. --- lib/screenplay/jobs/reminders.ex | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/screenplay/jobs/reminders.ex b/lib/screenplay/jobs/reminders.ex index ca42b16c..a92d219d 100644 --- a/lib/screenplay/jobs/reminders.ex +++ b/lib/screenplay/jobs/reminders.ex @@ -10,7 +10,11 @@ defmodule Screenplay.Jobs.Reminders do @impl Oban.Worker def perform(_) do - case Application.get_env(:screenplay, :slack_webhook_url) do + case Application.get_env( + :screenplay, + :slack_webhook_url, + "https://hooks.slack.com/services/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" + ) do v when v in [nil, ""] -> Logger.info("No Slack Webhook URL found") url -> send_slack_messages_for_outdated_alerts(url) end @@ -33,10 +37,17 @@ defmodule Screenplay.Jobs.Reminders do end defp format_slack_message(stations) do - group_id = Application.get_env(:screenplay, :pio_slack_group_id) + group_id = Application.get_env(:screenplay, :pio_slack_group_id, "") %{ blocks: [ + %{ + type: "header", + text: %{ + type: "plain_text", + text: "Outfront Takeover Tool Test" + } + }, %{ type: "section", text: %{