* Fixing some of the /message/send API hits by including all required match branches

Some tests are still failing however and I have no idea why
This commit is contained in:
shockrah 2021-05-27 23:17:47 -07:00
parent 0b34c25477
commit 928c6336d3

View File

@ -103,6 +103,9 @@ pub async fn send_message(pool: &Pool, response: &mut Response<Body>, body: Body
use crate::rtc; use crate::rtc;
rtc::new_message(pool, msg).await; rtc::new_message(pool, msg).await;
}, },
// All ok but nothing to do without rtc enabled
#[cfg(not(feature = "rtc"))]
Ok(Row(_)) => {},
Ok(RestrictedInput(_msg)) => *response.status_mut() = StatusCode::BAD_REQUEST, Ok(RestrictedInput(_msg)) => *response.status_mut() = StatusCode::BAD_REQUEST,
Ok(Other(msg)) => { Ok(Other(msg)) => {
eprintln!("{}", msg); eprintln!("{}", msg);