From b7c7b8b5e8e27e3b89b3c3ef9b8470e1795e1da0 Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 7 Jun 2021 19:37:16 -0700 Subject: [PATCH] * Moving a cloned channel into rtc:channel_create call --- json-api/src/channels.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-api/src/channels.rs b/json-api/src/channels.rs index 6be6e50..fd0046c 100644 --- a/json-api/src/channels.rs +++ b/json-api/src/channels.rs @@ -59,7 +59,7 @@ pub async fn create_channel(pool: &Pool, response: &mut Response, 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