Skip to content

Commit

Permalink
all: fix some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
HTGAzureX1212 committed Feb 2, 2025
1 parent c66b603 commit 25892f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api-backend/hartex-backend-driver/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub async fn main() -> miette::Result<()> {
}
}

let api_pgsql_url = env::var("API_PGSQL_URL").into_diagnostic()?;
let api_pgsql_url = env::var("API_BACKEND_PGSQL_URL").into_diagnostic()?;

log::debug!("building database connection pool");
let manager =
Expand Down
2 changes: 1 addition & 1 deletion rust-utilities/hartex-discord-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub type DatabasePoolFuture = impl Future<Output = PostgresPool>;

/// An asynchronously lazyily initialized database pool.
pub static DATABASE_POOL: AsyncLazy<PostgresPool, DatabasePoolFuture> = AsyncLazy::new(async {
let hartex_pgsql_url = env::var("HARTEX_NIGHTLY_PGSQL_URL").unwrap();
let hartex_pgsql_url = env::var("DISCORD_FRONTEND_PGSQL_URL").unwrap();

let manager = PostgresConnectionManager::new_from_stringlike(hartex_pgsql_url, NoTls).unwrap();

Expand Down

0 comments on commit 25892f9

Please sign in to comment.