Gave control to documents service.

This commit is contained in:
2025-04-26 10:29:58 -04:00
parent 55ffa538e8
commit 1bfbfc5e44
4 changed files with 65 additions and 37 deletions

View File

@ -1,5 +1,5 @@
use chrono::prelude::*;
use crate::ErrorType;
use chrono::prelude::*;
use std::fmt;
use uuid::Uuid;
@ -219,7 +219,7 @@ mod fields {
let field: Field = err.into();
match field {
Field::ErrorType(data) => match data {
ErrorType::DocumentNotFound => {},
ErrorType::DocumentNotFound => {}
//_ => unreachable!("got {:?}: should have been Document not found", data),
},
_ => unreachable!("should have been an error type"),
@ -238,7 +238,7 @@ mod fields {
let field: Field = err.into();
let result = field.to_error_type().unwrap();
match result {
ErrorType::DocumentNotFound => {},
ErrorType::DocumentNotFound => {}
//_ => unreachable!("got {:?}: should have been document not found", result),
}
}