Compare commits

..
Author SHA1 Message Date
phoenix 28de0f61e4 bump: textsender_models
swoosh pr / Rustfmt (pull_request) Successful in 50s
Release Tagging / release (pull_request) Successful in 32s
swoosh pr / Check (pull_request) Successful in 1m41s
swoosh pr / Clippy (pull_request) Successful in 3m7s
2026-06-26 21:36:32 -04:00
phoenix a6ba305d13 bump: swoosh 2026-06-26 21:34:56 -04:00
phoenix 0bb8679e61 Trying to get to the bottom of something
swoosh pr / Rustfmt (pull_request) Successful in 30s
Release Tagging / release (pull_request) Failing after 33s
swoosh pr / Check (pull_request) Has been cancelled
swoosh pr / Clippy (pull_request) Has been cancelled
2026-06-26 21:34:40 -04:00
3 changed files with 8 additions and 6 deletions
Generated
+3 -3
View File
@@ -2283,7 +2283,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
[[package]]
name = "swoosh"
version = "0.4.1"
version = "0.4.2"
dependencies = [
"base64-ng",
"const_format",
@@ -2368,8 +2368,8 @@ dependencies = [
[[package]]
name = "textsender_models"
version = "0.4.3"
source = "git+ssh://git@git.kundeng.us/phoenix/textsender_models.git?tag=v0.4.3-29-720f3d8f75-111#720f3d8f7515d8cd20a9cd73086bd6c1ab857651"
version = "0.4.10"
source = "git+ssh://git@git.kundeng.us/phoenix/textsender_models.git?tag=v0.4.10-29-6e91320709-111#6e91320709a369b525e911c51682a0d959a746dc"
dependencies = [
"const_format",
"dotenvy",
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "swoosh"
version = "0.4.1"
version = "0.4.2"
edition = "2024"
rust-version = "1.96"
description = "Library to send text messages"
@@ -18,7 +18,7 @@ uuid = { version = "1.23.3", features = ["v4", "serde"] }
base64-ng = { version = "1.0.8" }
const_format = { version = "0.2.36" }
josekit = { version = "0.10.3" }
textsender_models = { git = "ssh://git@git.kundeng.us/phoenix/textsender_models.git", tag = "v0.4.3-29-720f3d8f75-111", features = ["config", "contact", "message"] }
textsender_models = { git = "ssh://git@git.kundeng.us/phoenix/textsender_models.git", tag = "v0.4.10-29-6e91320709-111", features = ["config", "contact", "message"] }
[dev-dependencies]
tempfile = { version = "3.27.0" }
+3 -1
View File
@@ -37,6 +37,8 @@ pub async fn send_message(
let params = init_params(contact, msg, config, param);
println!("Params: {params:?}");
let url = format!(
"https://api.twilio.com/2010-04-01/Accounts/{}/Messages.json",
config.account_sid
@@ -83,7 +85,7 @@ fn init_params(
};
if param.schedule && is_scheduleable(Some(&now), Some(&scheduled_at)) {
params.insert(String::from("ScheduleType"), String::from("fixed"));
params.insert(String::from("SendAt"), date);
params.insert(String::from("SendAt"), date.clone());
}
params.insert(String::from("SendAsMms"), String::from("true"));
params.insert(String::from("RiskCheck"), String::from("enable"));