Warning fixes
This commit is contained in:
@@ -60,7 +60,7 @@ pub mod endpoint {
|
||||
let mut contacts: Vec<textsender_models::contact::Contact> = Vec::new();
|
||||
|
||||
for contact_id in &payload.contact_ids {
|
||||
match contact_repo::get(&pool, &contact_id).await {
|
||||
match contact_repo::get(&pool, contact_id).await {
|
||||
Ok(contact) => {
|
||||
contacts.push(contact);
|
||||
}
|
||||
@@ -103,7 +103,7 @@ pub mod endpoint {
|
||||
|
||||
for contact in &contacts {
|
||||
match swoosh::twilio::api::send_mssage(
|
||||
&message, &contact, &pp, &t_config,
|
||||
&message, contact, &pp, &t_config,
|
||||
)
|
||||
.await
|
||||
{
|
||||
@@ -137,7 +137,7 @@ pub mod endpoint {
|
||||
)
|
||||
} else {
|
||||
for result in &mut results {
|
||||
match event_repo::insert(&pool, &result).await {
|
||||
match event_repo::insert(&pool, result).await {
|
||||
Ok(i) => {
|
||||
result.id = i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user