Can get the full list of accommodation reservations for a family
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2024-05-25 08:48:13 +02:00
parent d0d1169c7d
commit 936b095d46
7 changed files with 69 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ pub async fn get_by_id(id: AccommodationID) -> anyhow::Result<Accommodation> {
})
}
/// Get all the couples of an accommodation
/// Get all the accommodations of a family
pub async fn get_all_of_family(id: FamilyID) -> anyhow::Result<Vec<Accommodation>> {
db_connection::execute(|conn| {
accommodations_list::table
@@ -57,7 +57,7 @@ pub async fn exists(
})
}
/// Update the information of a couple
/// Update the information of an accommodation
pub async fn update(accommodation: &mut Accommodation) -> anyhow::Result<()> {
accommodation.time_update = time() as i64;