Rename the FieldIdMapMissingEntry from_db_name field into process

This commit is contained in:
Kerollmops
2021-06-15 11:10:50 +02:00
parent 28c004aa2c
commit f0e804afd5
4 changed files with 9 additions and 9 deletions

View File

@ -62,7 +62,7 @@ pub fn obkv_to_json(
.map(|(id, value)| {
let name = fields_ids_map.name(id).ok_or(error::FieldIdMapMissingEntry::FieldId {
field_id: id,
from_db_name: "documents",
process: "obkv_to_json",
})?;
let value = serde_json::from_slice(value).map_err(error::InternalError::SerdeJson)?;
Ok((name.to_owned(), value))