summaryrefslogtreecommitdiff
path: root/angelsharkd/src/routes/dtos.rs
diff options
context:
space:
mode:
authorCarpenter, Adam (CORP) <adam.carpenter@adp.com>2021-10-22 18:49:05 -0400
committerCarpenter, Adam (CORP) <adam.carpenter@adp.com>2021-10-22 18:49:05 -0400
commit7cdd60bf7663e9be0cfbd4a474531b8ce3cf9258 (patch)
treed0d413d953e15bd12af120c77621dde1077e7ff2 /angelsharkd/src/routes/dtos.rs
parent3f9c77512877fdf64b27bdf2631f1d372c0c9cbc (diff)
downloadaltruistic-angelshark-7cdd60bf7663e9be0cfbd4a474531b8ce3cf9258.tar.xz
altruistic-angelshark-7cdd60bf7663e9be0cfbd4a474531b8ce3cf9258.zip
fix: corrected typo causing #1
Diffstat (limited to 'angelsharkd/src/routes/dtos.rs')
-rw-r--r--angelsharkd/src/routes/dtos.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/angelsharkd/src/routes/dtos.rs b/angelsharkd/src/routes/dtos.rs
index fe3f184..89271cd 100644
--- a/angelsharkd/src/routes/dtos.rs
+++ b/angelsharkd/src/routes/dtos.rs
@@ -22,7 +22,7 @@ pub struct Request {
pub acms: Vec<String>,
pub command: String,
pub fields: Option<Vec<String>>,
- pub datas: Option<Vec<Vec<String>>>,
+ pub datas: Option<Vec<String>>,
}
impl From<Request> for Vec<(String, Message)> {
@@ -35,7 +35,7 @@ impl From<Request> for Vec<(String, Message)> {
Message {
command: val.command.clone(),
fields: val.fields.clone(),
- datas: val.datas.clone(),
+ datas: val.datas.clone().map(|d| vec![d]),
error: None,
},
)