Skip to content

Commit

Permalink
chore: *sigh* havoc banned canister?
Browse files Browse the repository at this point in the history
  • Loading branch information
tale committed Dec 9, 2024
1 parent a5bc643 commit 4b7eff8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/api/src/routes/repository/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub async fn lookup_healthy() -> bool {
SELECT * FROM repository
WHERE
visible = true
AND id = 'havoc'
AND id = 'chariz'
LIMIT 1
",
&[],
Expand Down
4 changes: 2 additions & 2 deletions crates/api/src/routes/repository/packages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub async fn packages_healthy() -> bool {
SELECT * FROM repository
WHERE
visible = true
AND id = 'havoc'
AND id = 'chariz'
LIMIT 1
",
&[],
Expand All @@ -137,7 +137,7 @@ pub async fn packages_healthy() -> bool {
SELECT * FROM package
WHERE
visible = true
AND repository_id = 'havoc'
AND repository_id = 'chariz'
LIMIT 1000
",
&[],
Expand Down
2 changes: 1 addition & 1 deletion crates/api/src/routes/repository/safety.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub async fn safety_healthy() -> bool {
return false;
}

let test_safe = "https://havoc.app";
let test_safe = "https://repo.chariz.com";
let test_unsafe = "https://repo.hackyouriphone.org";

let repositories = match REPOSITORIES.get() {
Expand Down
2 changes: 1 addition & 1 deletion crates/api/src/routes/repository/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pub async fn search(query: Query<SearchParams>) -> impl IntoResponse {

pub async fn search_healthy() -> bool {
let query = TSQuery {
q: "havoc".to_string(),
q: "chariz".to_string(),
query_by: "slug,name,description,aliases".to_string(),
sort_by: "tier:asc".to_string(),
page: "1".to_string(),
Expand Down

0 comments on commit 4b7eff8

Please sign in to comment.