v0.3.0 #2

Merged
phoenix merged 24 commits from v0.3.0 into main 2026-06-27 17:37:22 -04:00
Showing only changes of commit 19e22abf4a - Show all commits
+19
View File
@@ -30,6 +30,13 @@ impl Service {
println!("Queue item Id: {:?}", queue_item.id);
if !self.is_schedulable(&queue_item) {
println!("Not schedulable");
return;
}
println!("Can schedule");
todo!(
r#"
Need to finish this
@@ -50,4 +57,16 @@ impl Service {
"#
);
}
fn is_schedulable(
&self,
queue_item: &textsender_models::message::scheduling::ScheduledMessage,
) -> bool {
let now = time::OffsetDateTime::now_utc();
match queue_item.scheduled {
Some(date) => date <= now,
None => false,
}
}
}