This commit is contained in:
		@@ -19,7 +19,7 @@ docker-compose up
 | 
				
			|||||||
3. Install Diesel CLI:
 | 
					3. Install Diesel CLI:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
sudo apt install libpq5 libpq-dev pkg-config libssl-dev
 | 
					sudo apt install libpq5 libpq-dev pkg-config libssl-dev cmake
 | 
				
			||||||
cargo install diesel_cli --no-default-features --features postgres
 | 
					cargo install diesel_cli --no-default-features --features postgres
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										568
									
								
								geneit_backend/Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										568
									
								
								geneit_backend/Cargo.lock
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -10,7 +10,7 @@ log = "0.4.21"
 | 
				
			|||||||
env_logger = "0.11.3"
 | 
					env_logger = "0.11.3"
 | 
				
			||||||
clap = { version = "4.5.4", features = ["derive", "env"] }
 | 
					clap = { version = "4.5.4", features = ["derive", "env"] }
 | 
				
			||||||
lazy_static = "1.4.0"
 | 
					lazy_static = "1.4.0"
 | 
				
			||||||
anyhow = "1.0.82"
 | 
					anyhow = "1.0.83"
 | 
				
			||||||
actix-web = "4.5.1"
 | 
					actix-web = "4.5.1"
 | 
				
			||||||
actix-cors = "0.7.0"
 | 
					actix-cors = "0.7.0"
 | 
				
			||||||
actix-multipart = "0.6.1"
 | 
					actix-multipart = "0.6.1"
 | 
				
			||||||
@@ -18,22 +18,22 @@ actix-remote-ip = "0.1.0"
 | 
				
			|||||||
futures-util = "0.3.30"
 | 
					futures-util = "0.3.30"
 | 
				
			||||||
diesel = { version = "2.1.6", features = ["postgres"] }
 | 
					diesel = { version = "2.1.6", features = ["postgres"] }
 | 
				
			||||||
serde = { version = "1.0.198", features = ["derive"] }
 | 
					serde = { version = "1.0.198", features = ["derive"] }
 | 
				
			||||||
serde_json = "1.0.116"
 | 
					serde_json = "1.0.117"
 | 
				
			||||||
mailchecker = "6.0.4"
 | 
					mailchecker = "6.0.4"
 | 
				
			||||||
redis = "0.25.3"
 | 
					redis = "0.25.3"
 | 
				
			||||||
lettre = "0.11.7"
 | 
					lettre = "0.11.7"
 | 
				
			||||||
rand = "0.8.5"
 | 
					rand = "0.8.5"
 | 
				
			||||||
bcrypt = "0.15.1"
 | 
					bcrypt = "0.15.1"
 | 
				
			||||||
light-openid = "1.0.2"
 | 
					light-openid = "1.0.2"
 | 
				
			||||||
thiserror = "1.0.58"
 | 
					thiserror = "1.0.60"
 | 
				
			||||||
serde_with = "3.7.0"
 | 
					serde_with = "3.8.1"
 | 
				
			||||||
rust_iso3166 = "0.1.12"
 | 
					rust_iso3166 = "0.1.12"
 | 
				
			||||||
rust-s3 = "0.33.0"
 | 
					rust-s3 = "0.33.0"
 | 
				
			||||||
sha2 = "0.10.8"
 | 
					sha2 = "0.10.8"
 | 
				
			||||||
image = "0.25.1"
 | 
					image = "0.25.1"
 | 
				
			||||||
uuid = { version = "1.8.0", features = ["v4"] }
 | 
					uuid = { version = "1.8.0", features = ["v4"] }
 | 
				
			||||||
httpdate = "1.0.3"
 | 
					httpdate = "1.0.3"
 | 
				
			||||||
zip = "0.6.6"
 | 
					zip = "1.2.3"
 | 
				
			||||||
mime_guess = "2.0.4"
 | 
					mime_guess = "2.0.4"
 | 
				
			||||||
tempfile = "3.10.1"
 | 
					tempfile = "3.10.1"
 | 
				
			||||||
base64 = "0.22.0"
 | 
					base64 = "0.22.0"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,7 +14,7 @@ use mime_guess::Mime;
 | 
				
			|||||||
use std::collections::HashMap;
 | 
					use std::collections::HashMap;
 | 
				
			||||||
use std::io;
 | 
					use std::io;
 | 
				
			||||||
use std::io::{Cursor, Read, Write};
 | 
					use std::io::{Cursor, Read, Write};
 | 
				
			||||||
use zip::write::FileOptions;
 | 
					use zip::write::SimpleFileOptions;
 | 
				
			||||||
use zip::{CompressionMethod, ZipArchive};
 | 
					use zip::{CompressionMethod, ZipArchive};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const MEMBERS_FILE: &str = "members.json";
 | 
					const MEMBERS_FILE: &str = "members.json";
 | 
				
			||||||
@@ -38,7 +38,7 @@ struct ImportCoupleRequest {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/// Export whole family data
 | 
					/// Export whole family data
 | 
				
			||||||
pub async fn export_family(f: FamilyInPath) -> HttpResult {
 | 
					pub async fn export_family(f: FamilyInPath) -> HttpResult {
 | 
				
			||||||
    let files_opt = FileOptions::default().compression_method(CompressionMethod::Bzip2);
 | 
					    let files_opt = SimpleFileOptions::default().compression_method(CompressionMethod::Bzip2);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let members = members_service::get_all_of_family(f.family_id()).await?;
 | 
					    let members = members_service::get_all_of_family(f.family_id()).await?;
 | 
				
			||||||
    let couples = couples_service::get_all_of_family(f.family_id()).await?;
 | 
					    let couples = couples_service::get_all_of_family(f.family_id()).await?;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user