Skip to content

Commit 2ad6057

Browse files
LRSD-9173 Rename
1 parent ca53339 commit 2ad6057

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

workspaces/liferay-customer-workspace/client-extensions/liferay-customer-etc-spring-boot/src/main/java/com/liferay/customer/TicketAttachmentsCompleteUploadRestController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ public ResponseEntity<String> post(
9191
}
9292

9393
@Scheduled(cron = "0 0 */1 * * ?")
94-
public void scheduledZendeskCommentRetry() throws Exception {
94+
public void scheduledUpdateTicketAttachmentDraftCommentBody()
95+
throws Exception {
96+
9597
List<TicketAttachment> ticketAttachments =
9698
_ticketAttachmentService.searchTicketAttachments(
9799
_liferayOAuth2AccessTokenManager.getAuthorization(

workspaces/liferay-customer-workspace/client-extensions/liferay-customer-etc-spring-boot/src/main/java/com/liferay/customer/TicketAttachmentsRestController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public ResponseEntity<String> delete(
8484
}
8585

8686
@Scheduled(cron = "0 0 * * * *")
87-
public void scheduledDeleteRetry() throws Exception {
87+
public void scheduledDeleteTicketAttachment() throws Exception {
8888
List<TicketAttachment> ticketAttachments =
8989
_ticketAttachmentService.searchTicketAttachments(
9090
_liferayOAuth2AccessTokenManager.getAuthorization(

workspaces/liferay-customer-workspace/client-extensions/liferay-customer-etc-spring-boot/src/main/java/com/liferay/customer/service/TicketAttachmentService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,15 @@ public List<TicketAttachment> searchTicketAttachments(
160160
String authorization, String filter)
161161
throws Exception {
162162

163+
List<TicketAttachment> ticketAttachments = new ArrayList<>();
164+
163165
JSONObject jsonObject = new JSONObject(
164166
get(
165167
authorization,
166168
createURI("/o/c/ticketattachments?filter=", filter)));
167169

168170
JSONArray jsonArray = jsonObject.getJSONArray("items");
169171

170-
List<TicketAttachment> ticketAttachments = new ArrayList<>();
171-
172172
for (int i = 0; i < jsonArray.length(); i++) {
173173
ticketAttachments.add(
174174
new TicketAttachment(jsonArray.getJSONObject(i)));

0 commit comments

Comments
 (0)