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

@@ -83,7 +83,7 @@ pub async fn edit_bot(db: &Db, user: User, target: Ref, data: Json<Data>) -> Res
db.update_bot(&bot.id, &partial, remove.unwrap_or_else(Vec::new))
.await?;
bot.apply_options(partial);
Ok(Json(bot))
}