diff --git a/db/1 copy.sqlite b/db/1 copy.sqlite new file mode 100644 index 0000000..d3d949b Binary files /dev/null and b/db/1 copy.sqlite differ diff --git a/db/1.sqlite b/db/1.sqlite index 3b25750..663bc98 100644 Binary files a/db/1.sqlite and b/db/1.sqlite differ diff --git a/db/1.sqlite-shm b/db/1.sqlite-shm deleted file mode 100644 index fe9ac28..0000000 Binary files a/db/1.sqlite-shm and /dev/null differ diff --git a/db/1.sqlite-wal b/db/1.sqlite-wal deleted file mode 100644 index e69de29..0000000 diff --git a/db/auth_copy_2.sqlite b/db/auth_copy_2.sqlite index 883fb23..e2bd687 100644 Binary files a/db/auth_copy_2.sqlite and b/db/auth_copy_2.sqlite differ diff --git a/db/auth_copy_2.sqlite-shm b/db/auth_copy_2.sqlite-shm deleted file mode 100644 index 15fdc1f..0000000 Binary files a/db/auth_copy_2.sqlite-shm and /dev/null differ diff --git a/db/auth_copy_2.sqlite-wal b/db/auth_copy_2.sqlite-wal deleted file mode 100644 index 5a966e3..0000000 Binary files a/db/auth_copy_2.sqlite-wal and /dev/null differ diff --git a/db/auth_demo.sqlite b/db/auth_demo.sqlite new file mode 100644 index 0000000..fd5c2e9 Binary files /dev/null and b/db/auth_demo.sqlite differ diff --git a/db/demo-db/1 copy.sqlite b/db/demo-db/1 copy.sqlite new file mode 100644 index 0000000..d3d949b Binary files /dev/null and b/db/demo-db/1 copy.sqlite differ diff --git a/db/demo-db/auth_demo.sqlite b/db/demo-db/auth_demo.sqlite new file mode 100644 index 0000000..fd5c2e9 Binary files /dev/null and b/db/demo-db/auth_demo.sqlite differ diff --git a/src/utils/auth.rs b/src/utils/auth.rs index 34f62b4..b5dafd8 100644 --- a/src/utils/auth.rs +++ b/src/utils/auth.rs @@ -494,7 +494,7 @@ pub async fn create_refresh_token( }, ) { Ok(cr) => cr, - Err(_) => return Err((StatusCode::INTERNAL_SERVER_ERROR, "error fetching credentials".to_string())), + Err(e) => return Err((StatusCode::INTERNAL_SERVER_ERROR, format!("error fetching credentials: {e}").to_string())), }; diff --git a/utils command.txt b/utils command.txt index 75103f0..29726f9 100644 --- a/utils command.txt +++ b/utils command.txt @@ -48,9 +48,24 @@ docker run \ rust-api:1.0.3 +FORM UBUNUTU REMOTE HOST + +sudo docker run -d \ +--name hotel-demo \ +-e JWT_SECRET=your_jwt_secret_key \ +-v "/var/lib/hotel-api/db:/app/db" \ +-p 5090:7080 \ +hotel-demo:1.0.0 - +FOR WINDOWS +vvvv +sudo docker run ` + --name hotel-demo ` + -e JWT_SECRET=your_jwt_secret_key ` + -v "/var/lib/hotel-api/db:/app/db" ` + -p 5090:5090 ` + hotel-demo:1.0.0