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