Skip to content

Commit b7b740c

Browse files
committed
feat: Improve explore module filtering
1 parent a52623d commit b7b740c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/jz-module/src/explore.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ impl AppModule {
2020
if param.rtype == "product" {
2121
value["type"] = json!("product");
2222
let mut data = vec![];
23-
let mut condition = Condition::all();
23+
let mut condition = Condition::all()
24+
.add(repository::Column::IsPrivate.eq(false));
2425
if param.search != "" {
2526
condition = condition.add(repository::Column::Name.contains(param.search.clone()))
2627
.add(repository::Column::Description.contains(param.search))

0 commit comments

Comments
 (0)