Cargo fmt

This commit is contained in:
Franklin 2023-05-03 14:19:54 -04:00
parent 08d07b6373
commit 8cd8d4bc90
1 changed files with 8 additions and 3 deletions

View File

@ -26,8 +26,13 @@ pub async fn insert_property(conn: &PgPool, property: Property) -> Result<Proper
.await
}
pub async fn get_property_with_id(conn: &PgPool, property_id: &Uuid) -> Result<Option<Property>, sqlx::Error> {
sqlx::query_file_as!(Property, "sql/property/get_with_id.sql", property_id).fetch_optional(conn).await
pub async fn get_property_with_id(
conn: &PgPool,
property_id: &Uuid,
) -> Result<Option<Property>, sqlx::Error> {
sqlx::query_file_as!(Property, "sql/property/get_with_id.sql", property_id)
.fetch_optional(conn)
.await
}
pub async fn update_property(conn: &PgPool, property: Property) -> Result<Property, sqlx::Error> {