summaryrefslogtreecommitdiff
path: root/angelsharkd/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'angelsharkd/src/routes')
-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,
},
)