fix drive: add missing diesel imports (QueryableByName, RunQueryDsl)
Some checks failed
BotServer CI/CD / build (push) Failing after 2m29s
Some checks failed
BotServer CI/CD / build (push) Failing after 2m29s
This commit is contained in:
parent
b5d5c576a4
commit
3684c862c6
1 changed files with 2 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ use axum::{
|
|||
Router,
|
||||
};
|
||||
use base64::{engine::general_purpose::STANDARD as BASE64, Engine};
|
||||
use diesel::{QueryableByName, RunQueryDsl};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use std::sync::Arc;
|
||||
|
|
@ -372,7 +373,7 @@ pub async fn list_files(
|
|||
"SELECT name, COALESCE(is_public, false) as is_public FROM kb_collections"
|
||||
)
|
||||
.load(&mut db_conn)
|
||||
.map_err(|e| e.to_string())?;
|
||||
.map_err(|e: diesel::result::Error| e.to_string())?;
|
||||
Ok(rows.into_iter().map(|r| (r.name, r.is_public)).collect())
|
||||
}).await;
|
||||
match kbs_result {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue