-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use case for create new records added #60
Conversation
store/src/process_records.rs
Outdated
) -> Result<(), Error> { | ||
let (area_name, product_name) = match &record[0] { | ||
"этикеровка" => match &record[4] { | ||
"C95-230" => ("малые картонные этикетки", "стакан полипропилен"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id must be used instead of name
@@ -155,7 +175,7 @@ pub fn save_half_stuff_cups(app: &Application) -> Result<(), Error> { | |||
Err(_) => return Err(Error::new(ErrorKind::InvalidData, "can't find an area")), // TODO handle IO error differently!!!! | |||
}; | |||
|
|||
if area["name"].as_str() == Some("стакан термоформовка") { | |||
if area["name"].as_str() == Some(area_name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id?
Err(_) => return Err(Error::new(ErrorKind::InvalidData, "can't find an area")), // TODO handle IO error differently!!!! | ||
}; | ||
|
||
if area["name"].as_str() == Some("термоусадочная этикетка") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id?
No description provided.