* Fixing broken /channels/create due to updated channel structure
The badges_id field has proved to bubble up some issues with updating deep structures Basically this just means that feature branches for deep features like this are a good idea ! Issue: RTC feature flag was working fine but without the feature flag `Row`'s had no pickup This meant correct responses were slipping into previously unreachable sections of code
This commit is contained in:
@@ -62,8 +62,15 @@ pub async fn create_channel(pool: &Pool, response: &mut Response<Body>, params:
|
||||
rtc::create_channel(channel).await;
|
||||
StatusCode::OK
|
||||
},
|
||||
#[cfg(not(feature = "rtc"))]
|
||||
Row(_) => { StatusCode::OK },
|
||||
|
||||
RestrictedInput(_) => StatusCode::UNPROCESSABLE_ENTITY,
|
||||
_ => StatusCode::INTERNAL_SERVER_ERROR
|
||||
// Unreachable
|
||||
_ => {
|
||||
eprintln!("[HTTP] /channels/create Couldn't fetch response variant");
|
||||
StatusCode::INTERNAL_SERVER_ERROR
|
||||
}
|
||||
}
|
||||
},
|
||||
Err(e) => {
|
||||
|
||||
Reference in New Issue
Block a user