From 7cdd60bf7663e9be0cfbd4a474531b8ce3cf9258 Mon Sep 17 00:00:00 2001 From: "Carpenter, Adam (CORP)" Date: Fri, 22 Oct 2021 18:49:05 -0400 Subject: fix: corrected typo causing #1 --- angelsharkd/src/routes/dtos.rs | 4 ++-- 1 file 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, pub command: String, pub fields: Option>, - pub datas: Option>>, + pub datas: Option>, } impl From for Vec<(String, Message)> { @@ -35,7 +35,7 @@ impl From 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, }, ) -- cgit v1.2.3