Skip to content

Commit

Permalink
add ENV to ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tguntenaar committed Dec 11, 2024
1 parent f4b7caa commit aefba45
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

ENV=LOCAL # for testing
DATABASE_URL=
CONTRACT=devhub.near
ROCKET_DATABASES={devhub_cache_api_rs={url="postgres://devhub_cache_api_rs:password@localhost/devhub_cache_api_rs"}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
CONTRACT: devhub.near
DATABASE_URL: postgres://devhub_cache_api_rs:password@127.0.0.1:5432/devhub_cache_api_rs
NEARBLOCKS_API_KEY: ${{ secrets.NEARBLOCKS_API_KEY }}
ENV: GH_ACTION

- name: Run clippy and audit
run:
Expand Down
1 change: 0 additions & 1 deletion src/entrypoints/proposal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use rocket::{get, http::Status, State};
use std::convert::TryInto;
pub mod proposal_types;

// TODO Use caching of search terms
#[utoipa::path(get, path = "/proposals/search?<input>", params(
("input"= &str, Path, description ="The string to search for in proposal name, description, summary, and category fields."),
))]
Expand Down
2 changes: 0 additions & 2 deletions src/entrypoints/rfp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use rocket::{delete, get, http::Status, State};
use std::convert::TryInto;
pub mod rfp_types;

// TODO Use caching of search terms
#[utoipa::path(get, path = "/rfps/search/<input>", params(
("input"= &str, Path, description ="The string to search for in rfp name, description, summary, and category fields."),
))]
Expand Down Expand Up @@ -115,7 +114,6 @@ async fn get_rfps(
#[utoipa::path(get, path = "/rfp/{rfp_id}")]
#[get("/<rfp_id>")]
async fn get_rfp(rfp_id: i32, contract: &State<AccountId>) -> Result<Json<VersionedRFP>, Status> {
// TODO Get cached rfp
match RpcService::new(contract).get_rfp(rfp_id).await {
Ok(rfp) => Ok(Json(rfp.data)),
Err(e) => {
Expand Down

0 comments on commit aefba45

Please sign in to comment.