fix: fixes for full mongo implementation

This commit is contained in:
Paul Makles
2022-02-11 21:44:59 +00:00
parent 7a9adb45f7
commit 4801b51cef
15 changed files with 45 additions and 36 deletions

View File

@@ -1,6 +1,5 @@
use revolt_quark::{models::User, perms, ChannelPermission, Db, EmptyResponse, Error, Ref, Result};
#[delete("/<target>/messages/<msg>")]
pub async fn req(db: &Db, user: User, target: Ref, msg: Ref) -> Result<EmptyResponse> {
let message = msg.as_message(db).await?;