fix: actually create the server object

This commit is contained in:
Paul Makles committed 2022-04-22 22:08:04 +01:00
1 parent 7757769f79
commit 00cb132d29
1 file changed
+1
+1
View File
@@ -92,6 +92,7 @@ pub async fn req(
..Default::default()
};
server.create(db).await?;
let channels = server.create_member(db, user, Some(vec![channel])).await?;
Ok(Json(CreateServerResponse { server, channels }))
}