diff --git a/Cargo.lock b/Cargo.lock index 4aef0e431c37603cbc86b6c419b2c94bafcb4caa..612f5003cd1b598b483658fbed9a5afc021dec0d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2475,7 +2475,7 @@ dependencies = [ [[package]] name = "revolt" -version = "0.4.1-alpha.0" +version = "0.4.1-alpha.1" dependencies = [ "async-std", "async-tungstenite", diff --git a/Cargo.toml b/Cargo.toml index ab57cf5717f1eaa841b3a648a9e5828836754102..0422bb740a5facded0e17dc48d6d713b6a08c908 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "revolt" -version = "0.4.1-alpha.0" +version = "0.4.1-alpha.1" authors = ["Paul Makles <paulmakles@gmail.com>"] edition = "2018" diff --git a/src/routes/channels/message_send.rs b/src/routes/channels/message_send.rs index 0cfa5f18bd834aa49f5c4c6f85065d96c9eef9ef..742f47643429749a042eed5890194ddeb8437bf3 100644 --- a/src/routes/channels/message_send.rs +++ b/src/routes/channels/message_send.rs @@ -68,7 +68,7 @@ pub async fn req(user: User, target: Ref, message: Json<Data>) -> Result<JsonVal doc! { "_id": attachment_id, "tag": "attachments", - "message": { + "message_id": { "$exists": false } }, @@ -92,7 +92,7 @@ pub async fn req(user: User, target: Ref, message: Json<Data>) -> Result<JsonVal }, doc! { "$set": { - "message": &id + "message_id": &id } }, None, diff --git a/src/routes/root.rs b/src/routes/root.rs index 40580834ef24c8daa34ae40bc88dbc7f6e3f335a..1f2be02f919f61f41a0324162e072da38abab98c 100644 --- a/src/routes/root.rs +++ b/src/routes/root.rs @@ -9,7 +9,7 @@ use rocket_contrib::json::JsonValue; #[get("/")] pub async fn root() -> JsonValue { json!({ - "revolt": "0.4.1-alpha.0", + "revolt": "0.4.1-alpha.1", "features": { "registration": !*DISABLE_REGISTRATION, "captcha": {