diff --git a/src/api/src/service.rs b/src/api/src/service.rs index 9047880..c35bc95 100644 --- a/src/api/src/service.rs +++ b/src/api/src/service.rs @@ -25,7 +25,6 @@ pub async fn run(req_body: web::Json) -> impl Responder { Language::PYTHON => 0, Language::NODE => 1, Language::RUST => 2, - _ => unreachable!("Invalid language"), }, log_level: req.log_level as i32, }; diff --git a/src/cli/src/services.rs b/src/cli/src/services.rs index f2dd525..2ec38ba 100644 --- a/src/cli/src/services.rs +++ b/src/cli/src/services.rs @@ -33,6 +33,7 @@ impl CloudletClient { log_level: shared_models::LogLevel::INFO, server: config.server, build: config.build, + action: config.action, } } diff --git a/src/shared-models/src/lib.rs b/src/shared-models/src/lib.rs index 73362a3..2b0b673 100644 --- a/src/shared-models/src/lib.rs +++ b/src/shared-models/src/lib.rs @@ -34,6 +34,7 @@ pub struct CloudletDtoRequest { pub language: Language, pub code: String, pub log_level: LogLevel, + pub action: String, pub server: ServerConfig, pub build: BuildConfig, }