Skip to content

Commit

Permalink
fix: database not publishing env vars properly (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagojez authored Dec 2, 2024
1 parent d7813f2 commit 21dc785
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion integrationos-domain/src/domain/configuration/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Display for DatabaseConfig {
}
}

#[derive(Envconfig, Clone, Serialize, Deserialize, PartialEq)]
#[derive(Envconfig, Clone, Serialize, Deserialize, PartialEq, Debug)]
pub struct DatabaseConnectionConfig {
#[envconfig(from = "WORKER_THREADS")]
pub worker_threads: Option<usize>,
Expand Down Expand Up @@ -173,6 +173,12 @@ impl DatabaseConnectionConfig {
self.address.to_string(),
);
map.insert("ENVIRONMENT".to_string(), self.environment.to_string());
map.insert(
"DATABASE_CONNECTION_TYPE".to_string(),
self.database_connection_type.as_ref().into(),
);
map.insert("EMIT_URL".to_string(), self.emit_url.clone());
map.insert("CONNECTION_ID".to_string(), self.connection_id.clone());
map.insert(
"POSTGRES_USERNAME".to_string(),
self.postgres_config.postgres_username.clone(),
Expand Down

0 comments on commit 21dc785

Please sign in to comment.