Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] 오타 수정 #114

Merged
merged 2 commits into from
Sep 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;