[fix] bundlesdb: include "paste_cache" on "postgres" and "mysql"

This commit is contained in:
hkau 2024-02-25 18:20:41 -05:00
parent be99332a20
commit f349482f8f

View file

@ -130,12 +130,14 @@ pub struct Log {
#[cfg(feature = "postgres")]
pub struct BundlesDB {
pub db: Database<sqlx::PgPool>,
pub paste_cache: CacheStore<Paste<String>>,
}
#[derive(Clone)]
#[cfg(feature = "mysql")]
pub struct BundlesDB {
pub db: Database<sqlx::MySqlPool>,
pub paste_cache: CacheStore<Paste<String>>,
}
#[derive(Clone)]