Skip to content

Commit 3386b90

Browse files
nNiltonjoseabelenda
authored andcommitted
LRSD-9602 update to company objects
1 parent 12ccdfa commit 3386b90

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

workspaces/liferay-learn-workspace/client-extensions/liferay-learn-etc-spring-boot/src/main/java/com/liferay/learn/CourseProgressDownloadRestController.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.json.JSONObject;
3131

3232
import org.springframework.beans.factory.annotation.Autowired;
33-
import org.springframework.beans.factory.annotation.Value;
3433
import org.springframework.http.ResponseEntity;
3534
import org.springframework.security.core.annotation.AuthenticationPrincipal;
3635
import org.springframework.security.oauth2.jwt.Jwt;
@@ -120,7 +119,7 @@ private void _loadCourseQuizzes() {
120119
get(
121120
_getAuthorization(),
122121
UriComponentsBuilder.fromUriString(
123-
"/o/c/quizes/scopes/" + _siteGroupId
122+
"/o/c/quizes/"
124123
).queryParam(
125124
"fields",
126125
"id,r_quiz_c_module,r_quiz_c_module.r_module_c_courseId"
@@ -177,7 +176,7 @@ private void _write(
177176
get(
178177
_getAuthorization(),
179178
UriComponentsBuilder.fromUriString(
180-
"/o/c/enrollments/scopes/" + _siteGroupId
179+
"/o/c/enrollments/"
181180
).queryParam(
182181
"nestedFields", "course,user"
183182
).queryParam(
@@ -293,7 +292,4 @@ private void _write(
293292
@Autowired
294293
private LiferayOAuth2AccessTokenManager _liferayOAuth2AccessTokenManager;
295294

296-
@Value("${liferay.learn.dxp.site.group.id}")
297-
private long _siteGroupId;
298-
299295
}

0 commit comments

Comments
 (0)