File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
post-service/src/main/java/com/codecampus/post
submission-service/src/main/java/com/codecampus/submission/service Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ PostRequestDto toPostRequestDtoFromPost(
1919 List <PostRequestDto > toPostRequestDtoListFromPostList (
2020 List <Post > posts );
2121
22- @ BeanMapping (nullValuePropertyMappingStrategy = IGNORE )
2322 Post toPostFromPostRequestDto (
2423 PostRequestDto postRequestDto );
2524
Original file line number Diff line number Diff line change @@ -103,15 +103,13 @@ public PostResponseDto getPostDetail(
103103 public void createPost (
104104 PostRequestDto postRequestDto ) {
105105 String userId = AuthenticationHelper .getMyUserId ();
106- String orgId = AuthenticationHelper .getMyOrgId ();
107106
108107 List <String > fileUrls =
109108 postHelper .uploadAll (postRequestDto .getFileDocument ());
110109
111110 Post post = postMapper .toPostFromPostRequestDto (postRequestDto );
112111 post .setFileUrls (fileUrls );
113112 post .setUserId (userId );
114- post .setOrgId (orgId );
115113
116114 postRepository .save (post );
117115
Original file line number Diff line number Diff line change @@ -107,13 +107,10 @@ public Exercise createExercise(
107107 CreateExerciseRequest request ,
108108 boolean returnExercise ) {
109109 String userId = AuthenticationHelper .getMyUserId ();
110- String orgId = AuthenticationHelper .getMyOrgId ();
111110
112- Exercise exercise = exerciseMapper .toExerciseFromCreateExerciseRequest (
113- request , userId );
114- exercise .setOrgId (orgId );
115- exerciseRepository .save (exercise );
116-
111+ Exercise exercise = exerciseRepository
112+ .save (exerciseMapper .toExerciseFromCreateExerciseRequest (
113+ request , userId ));
117114 if (exercise .getExerciseType () == ExerciseType .QUIZ ) {
118115 grpcQuizClient .pushExercise (exercise );
119116 } else if (exercise .getExerciseType () == ExerciseType .CODING ) {
You can’t perform that action at this time.
0 commit comments