fix: used wrong collection in get_literal
This commit is contained in:
parent
41ac1d7cea
commit
0a64b25044
@ -210,7 +210,7 @@ pub trait CallDB {
|
|||||||
literal: &str,
|
literal: &str,
|
||||||
) -> Result<Option<Literal>, Box<dyn std::error::Error>> {
|
) -> Result<Option<Literal>, Box<dyn std::error::Error>> {
|
||||||
let db = self.get_database().await;
|
let db = self.get_database().await;
|
||||||
let messages = db.collection::<Literal>("messages");
|
let messages = db.collection::<Literal>("literals");
|
||||||
|
|
||||||
let literal = messages.find_one(doc! { "token": literal }).await?;
|
let literal = messages.find_one(doc! { "token": literal }).await?;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user