From f163cb65de1e0c96a85f139f2538612a4ed939fd Mon Sep 17 00:00:00 2001
From: Paul <paulmakles@gmail.com>
Date: Sat, 24 Apr 2021 18:01:08 +0100
Subject: [PATCH] AAAAAAAAAAAAA

We should be setting message_id not message.
---
 Cargo.lock                          | 2 +-
 Cargo.toml                          | 2 +-
 src/routes/channels/message_send.rs | 4 ++--
 src/routes/root.rs                  | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index 4aef0e4..612f500 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 ab57cf5..0422bb7 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 0cfa5f1..742f476 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 4058083..1f2be02 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": {
-- 
GitLab