diff --git a/server/src/channels.rs b/server/src/channels.rs index 2b9b108..f2cd7ad 100644 --- a/server/src/channels.rs +++ b/server/src/channels.rs @@ -10,20 +10,6 @@ use crate::{DBConn, schema, payload}; use crate::err::{self, DbError}; -macro_rules! busted_channels_response { - () => { - Json(vec![Channel { - id: -1, - name: "".to_string(), - permissions: 0, - limit: 0, - type_: 0, // the other fields are bs this is the only one that really mattesr - }]) - } -} - - -// TODO: fix the return type of this to data thats verifiable #[post("/create////")] pub fn insert_new_channel(qname: String, perms: i32, lim: i32, ctype: i32, conn: DBConn) -> DbError, err::DbResponse> { diff --git a/server/src/err.rs b/server/src/err.rs index bf8a78e..ff8a256 100644 --- a/server/src/err.rs +++ b/server/src/err.rs @@ -6,7 +6,7 @@ use rocket::request::Request; #[derive(Debug, Clone)] pub struct DbResponse { - err_msg: &'static str + pub err_msg: &'static str } pub type DbError = std::result::Result;