fix: used wrong collection in get_literal

This commit is contained in:
Akulij 2025-04-26 00:25:32 +03:00
parent 41ac1d7cea
commit 0a64b25044

View File

@ -210,7 +210,7 @@ pub trait CallDB {
literal: &str,
) -> Result<Option<Literal>, Box<dyn std::error::Error>> {
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?;