* Moving a cloned channel into rtc:channel_create call

This commit is contained in:
shockrah 2021-06-07 19:37:16 -07:00
parent 0e6168a961
commit b7c7b8b5e8

View File

@ -59,7 +59,7 @@ pub async fn create_channel(pool: &Pool, response: &mut Response<Body>, params:
#[cfg(feature = "rtc")]
{
use crate::rtc;
rtc::create_channel(channel).await;
rtc::create_channel(channel.clone()).await;
}
set_json_body(response, json!({"channel": channel}));
StatusCode::OK