From 23d50593997fc36e4764d1fb0df33e295d8ee6ed Mon Sep 17 00:00:00 2001 From: Jakub Olan Date: Sat, 22 Jun 2024 23:26:26 +0200 Subject: [PATCH] =?UTF-8?q?refactor(cli):=20=E2=99=BB=EF=B8=8F=20add=20fal?= =?UTF-8?q?lback=20to=20`Threshold`=20dosage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/cli/src/core/route_of_administration.rs | 3 ++- apps/functions/README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/cli/src/core/route_of_administration.rs b/apps/cli/src/core/route_of_administration.rs index f030f119..0affce4d 100644 --- a/apps/cli/src/core/route_of_administration.rs +++ b/apps/cli/src/core/route_of_administration.rs @@ -119,7 +119,8 @@ impl FindClassificationByDosage for RouteOfAdministrationDosages { return Ok(*classification); } } - Err("Dosage classification not found".to_string()) + + return Ok(DosageClassification::Threshold); } } diff --git a/apps/functions/README.md b/apps/functions/README.md index 9f1ae85d..cabf64de 100644 --- a/apps/functions/README.md +++ b/apps/functions/README.md @@ -1,3 +1,3 @@ # `/functions` -Directory contains functions that can perform specific computation logic, these are deployed in single docker containers or using some serverless-like framerwork. +Directory contains functions that can perform specific computation logic, these are deployed in single docker containers or using some serverless-like framework.