mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
chore: update uuid dep
This commit is contained in:
@ -21,4 +21,4 @@ serde_json.workspace = true
|
||||
serde.workspace = true
|
||||
sparkpost = "0.5"
|
||||
time = "0.3"
|
||||
uuid = { version = "1", features = ["v4", "serde"] }
|
||||
uuid.workspace = true
|
||||
|
@ -1,6 +1,7 @@
|
||||
use actix_web::{web, HttpResponse};
|
||||
use diesel::prelude::*;
|
||||
use serde::Deserialize;
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::{
|
||||
errors::ServiceError,
|
||||
@ -40,7 +41,7 @@ fn query(
|
||||
|
||||
let mut conn = pool.get().unwrap();
|
||||
|
||||
let invitation_id = uuid::Uuid::parse_str(&invitation_id)?;
|
||||
let invitation_id = invitation_id.parse::<Uuid>()?;
|
||||
|
||||
invitations
|
||||
.filter(id.eq(invitation_id))
|
||||
|
Reference in New Issue
Block a user