Skip to content

Commit

Permalink
[Fix] 오타 수정 (#114)
Browse files Browse the repository at this point in the history
* [Fix] 인사이트 등록 API url -> link 수정

* [Fix] issue-104_dml 수정
  • Loading branch information
heoboseong7 authored Sep 26, 2022
1 parent d6591c0 commit 2da7ba5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ public void setup(RestDocumentationContextProvider provider) {
@DisplayName("인사이트 등록 API")
void create_insight_test() throws Exception {
String contents = "내용내용내용내용내용내용내용내용내용내용내용내용내용내용내용내용";
String url = "https://tech.kakao.com/2022/03/17/2022-newkrew-onboarding-codereview/";
String link = "https://tech.kakao.com/2022/03/17/2022-newkrew-onboarding-codereview/";
boolean participation = false;
Long drawerId = 1L;

JSONObject insightCreateRequest = new JSONObject();
insightCreateRequest
.put("contents", contents)
.put("url", url)
.put("link", link)
.put("participation", participation)
.put("drawerId", drawerId);

Expand All @@ -69,7 +69,7 @@ void create_insight_test() throws Exception {
headerWithName("Authorization").description("유저의 JWT"))
.requestFields(
fieldWithPath("contents").description("인사이트의 내용. 최대 300자, 문자 제한 없음"),
fieldWithPath("url").description("등록한 링크의 url. 최대 2000자"),
fieldWithPath("link").description("등록한 링크의 link. 최대 2000자"),
fieldWithPath("participation").description("현재 진행중인 챌린지에 참가할 지 여부"),
fieldWithPath("drawerId").description("서랍의 ID. 선택").optional())
.responseFields(
Expand Down
6 changes: 3 additions & 3 deletions keewe-domain/src/main/resources/dml/issue-104_dml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ ALTER TABLE `insight`

ALTER TABLE `reaction`
ADD COLUMN created_at DATETIME(6) NOT NULL,
ADD COLUMN updated_at DATETIME(6) NOT NULL,
ADD COLUMN updated_at DATETIME(6) NOT NULL;

ALTER TABLE `reaction_aggreation`
ALTER TABLE `reaction_aggregation`
ADD COLUMN created_at DATETIME(6) NOT NULL,
ADD COLUMN updated_at DATETIME(6) NOT NULL,
ADD COLUMN updated_at DATETIME(6) NOT NULL;

0 comments on commit 2da7ba5

Please sign in to comment.