From 41645feb46fa0c981cdea8b306ab635717b139f3 Mon Sep 17 00:00:00 2001 From: Min-Ho CHO <66549638+chominho96@users.noreply.github.com> Date: Sat, 2 Mar 2024 03:37:38 +0900 Subject: [PATCH 1/4] hotfix: fix cron of scheduler --- batch/src/main/resources/application-prod.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/batch/src/main/resources/application-prod.yml b/batch/src/main/resources/application-prod.yml index 96241081..3a459dc4 100644 --- a/batch/src/main/resources/application-prod.yml +++ b/batch/src/main/resources/application-prod.yml @@ -24,10 +24,10 @@ spring: schedules: cron: - stock: "0 2 * * * *" + stock: "0 0 2 * * *" dividend: - past: "0 4 * * * 0" - future: "0 4 * * * *" + past: "0 0 4 * * 0" + future: "0 0 4 * * *" financial: fmp: From 24d233f0e475805ed2e41d075a90df0e89b8e393 Mon Sep 17 00:00:00 2001 From: HOYA <66549638+chominho96@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:08:25 +0900 Subject: [PATCH 2/4] fix: change server spec and fix test (#82) * hotfix: trigger deploy.yml * hotfix: fix ddl auto * hotfix: trigger scheduler * hotfix: fix ninja api key * hotfix: trigger scheduler * hotfix: fix cron of scheduler * test: fix test --- .github/workflows/deploy.yml | 1 + .../apiserver/stock/application/StockQueryServiceTest.java | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1abfad8d..907f36bc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,7 @@ on: branches: - main - develop + - feat/#81 jobs: build-and-push: diff --git a/api-server/src/test/java/nexters/payout/apiserver/stock/application/StockQueryServiceTest.java b/api-server/src/test/java/nexters/payout/apiserver/stock/application/StockQueryServiceTest.java index fff4ac0b..b2fe91ab 100644 --- a/api-server/src/test/java/nexters/payout/apiserver/stock/application/StockQueryServiceTest.java +++ b/api-server/src/test/java/nexters/payout/apiserver/stock/application/StockQueryServiceTest.java @@ -102,10 +102,9 @@ class StockQueryServiceTest { @Test void 종목_상세_정보의_배당날짜를_올해기준으로_반환한다() { // given - int expectedMonth = 3; - int expectedDayOfMonth = 1; + LocalDate expectedDate = LocalDate.now().minusYears(1).plusDays(1); int lastYear = LocalDate.now().getYear() - 1; - Instant exDividendDate = LocalDate.of(lastYear, 3, 1).atStartOfDay().toInstant(UTC); + Instant exDividendDate = LocalDate.now().minusYears(1).plusDays(1).atStartOfDay().toInstant(UTC); Stock appl = StockFixture.createStock(AAPL, Sector.TECHNOLOGY, 2.0); Dividend dividend = DividendFixture.createDividendWithPaymentDate(appl.getId(), 0.5, exDividendDate); @@ -116,7 +115,7 @@ class StockQueryServiceTest { StockDetailResponse actual = stockQueryService.getStockByTicker(appl.getTicker()); // then - assertThat(actual.earliestPaymentDate()).isEqualTo(LocalDate.of(lastYear + 1, expectedMonth, expectedDayOfMonth)); + assertThat(actual.earliestPaymentDate()).isEqualTo(LocalDate.of(lastYear + 1, expectedDate.getMonth(), expectedDate.getDayOfMonth())); } @Test From e61cac8e4494a98ab97700b5e25508a579837f71 Mon Sep 17 00:00:00 2001 From: HOYA <66549638+chominho96@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:25:24 +0900 Subject: [PATCH 3/4] setting: transfer server to us region (#84) * setting: set db * setting: trigger deploy.yml * setting: set cron of scheduler * setting: rollback cron of scheduler * setting: delete current branch from deploy.yml * setting: trigger deploy.yml and set up db * setting: delete current branch from deploy.yml * setting: delete current branch from deploy.yml --- .github/workflows/deploy.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 907f36bc..1abfad8d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,6 @@ on: branches: - main - develop - - feat/#81 jobs: build-and-push: From 1edafe55bb9d24132f97aa7af6a5f763ce3cba77 Mon Sep 17 00:00:00 2001 From: Songyi Kim Date: Wed, 6 Mar 2024 19:58:39 +0900 Subject: [PATCH 4/4] docs: update README.md --- README.md | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index edaf4e6d..4927f0dc 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,26 @@ -# Payout Server +image -

-Nexters 24기 저점매수 팀의 미국 주식 배당금 계산 서비스 Payout server repository입니다. -# 🔗 Link +

📈 미국 배당 투자자를 위한 배당금 진단 서비스, Payout

+ +-
1분 내로 간단하게, 배당 포트폴리오 셀프 체크할 수 있어요
+-
포트폴리오 밸런스 진단, 섹터별 인사이트를 제공해요
+-
월간 / 연간 배당금 체크, 종목별 주요 배당 정보를 알 수 있어요
+ + +## 🔗 Link [Payout Link](https://pay-out.us) -# 🛠️ Tech Stack + +## 🛠️ Tech Stack

스크린샷 2024-03-02 오전 12 04 28

-# ⛓️ System architecture +## ⛓️ System architecture ![제목 없음](https://github.com/Nexters/payout-client/assets/66549638/b0961bac-23fc-40da-8de7-2960f6035683) -# 🗺️ ERD -![dividend (1)](https://github.com/Nexters/payout-server/assets/66549638/b46c3017-1e1c-4941-a6cf-85457f2f553f) \ No newline at end of file +## 💻 Backend Developer +||| +|:-:|:-:| +|[@chominho96](https://github.com/chominho96)|[@songyi00](https://github.com/songyi00)| +