From e39f1f5e9b7a7534d3966ac0ee021555a23aa249 Mon Sep 17 00:00:00 2001 From: yoshihiro-shu Date: Sat, 28 Oct 2023 23:01:58 +0900 Subject: [PATCH 1/2] updata: go-sum --- backend/go.sum | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/go.sum b/backend/go.sum index bda4f6ee..c93110bc 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -32,8 +32,6 @@ github.com/go-playground/validator/v10 v10.14.1/go.mod h1:9iXMNT7sEkjXb0I+enO7QX github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/csrf v1.7.1 h1:Ir3o2c1/Uzj6FBxMlAUB6SivgVMy1ONXwYgXn+/aHPE= From 4f94358cb16de54f3bfd1e3d0f55ed8eebad66c2 Mon Sep 17 00:00:00 2001 From: yoshihiro-shu Date: Sat, 28 Oct 2023 23:15:25 +0900 Subject: [PATCH 2/2] fix: batch qiita --- batch/qiita/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/batch/qiita/src/main.rs b/batch/qiita/src/main.rs index c314bbee..7ae1c561 100644 --- a/batch/qiita/src/main.rs +++ b/batch/qiita/src/main.rs @@ -17,9 +17,9 @@ fn construct_db_url() -> String { // 環境変数から値を取得します。環境変数が設定されていない場合はデフォルト値を使用します。 let db_host = env::var("DB_HOST").unwrap_or_else(|_| "localhost".to_string()); let db_port = env::var("DB_PORT").unwrap_or_else(|_| "5432".to_string()); - let db_user = env::var("DB_USER").unwrap_or_else(|_| "user".to_string()); + let db_user = env::var("DB_USER").unwrap_or_else(|_| "postgres".to_string()); let db_password = env::var("DB_PASSWORD").unwrap_or_else(|_| "password".to_string()); - let db_name = env::var("DB_NAME").unwrap_or_else(|_| "database".to_string()); + let db_name = env::var("DB_NAME").unwrap_or_else(|_| "postgres".to_string()); let db_ssl = env::var("DB_SSL").unwrap_or_else(|_| "disable".to_string()); // SSLの設定に基づいて、SSLモードを指定します。