AAAAAAAAAAAAA

We should be setting message_id not message.
This commit is contained in:
Paul
2021-04-24 18:01:08 +01:00
parent f7bcd3ad93
commit f163cb65de
4 changed files with 5 additions and 5 deletions

2
Cargo.lock generated
View File

@@ -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",

View File

@@ -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"

View File

@@ -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,

View File

@@ -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": {