Skip to content

Commit

Permalink
feat: update oca-rs to 0.3.0-rc.11 for search limit support
Browse files Browse the repository at this point in the history
  • Loading branch information
olichwiruk committed Aug 30, 2023
1 parent 531bc43 commit b0a5135
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ config = "0.13.2"
dyn-clonable = "0.9.0"
indexmap = { version = "1.9.3", features = ["serde"] }
oca-parser-xls = "2.0.0-rc.1"
oca-rs = "0.3.0-rc.10"
oca-rs = "0.3.0-rc.11"
rusqlite = "0.29.0"
serde = { version = "1.0", features = ["derive"] }
serde-value = "0.7.0"
Expand Down
10 changes: 8 additions & 2 deletions src/routes/oca_bundles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@ pub async fn search(
cache_storage: web::Data<SQLiteConfig>,
query_params: web::Query<SearchParams>,
) -> HttpResponse {
let oca_facade = oca_rs::Facade::new(db.get_ref().clone(), cache_storage.get_ref().clone());
let result = oca_facade.search_oca_bundle(query_params.q.clone().unwrap_or("".to_string()));
let oca_facade = oca_rs::Facade::new(
db.get_ref().clone(),
cache_storage.get_ref().clone(),
);
let result = oca_facade.search_oca_bundle(
query_params.q.clone().unwrap_or("".to_string()),
10,
);

HttpResponse::Ok()
.content_type(ContentType::json())
Expand Down

0 comments on commit b0a5135

Please sign in to comment.