* 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:
parent
0b34c25477
commit
928c6336d3
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user