Skip to content

Commit

Permalink
skip api key verification in non productive environments (#255)
Browse files Browse the repository at this point in the history
* skip api key verification in non productive environments

* fix message string
  • Loading branch information
mabiede authored Nov 10, 2023
1 parent 1301a3e commit 6112735
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pool/app/text_message/text_message_service.ml
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,14 @@ let test_api_key ~tags api_key cell_phone tenant_title =
body_string);
Lwt.return_ok api_key)
| false ->
Pool_common.Message.TextMessageInterceptionError
"Sending text message intercepted"
|> Lwt.return_error
let (_ : Pool_common.Message.error) =
Pool_common.Utils.with_log_error
~level:Logs.Warning
(Pool_common.Message.TextMessageInterceptionError
"Verifying API Key: Skip validation due to non production \
environment!")
in
api_key |> Lwt.return_ok
;;

module Job = struct
Expand Down

0 comments on commit 6112735

Please sign in to comment.