Skip to content

Commit

Permalink
8.17.0 Version
Browse files Browse the repository at this point in the history
  • Loading branch information
junaidBazaarVoice committed Nov 5, 2024
1 parent f063c51 commit e2bf41a
Showing 1 changed file with 0 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,44 +342,7 @@ private ResponseType submitFlowV7() throws ConversationsSubmissionException {
}
}
}
if (submissionRequest.getVideoUploads() != null && submissionRequest.getVideoUploads().size() > 0) {
// If the user wants to submit photos, submit each of them, collect the metadata,
// and associate it with the submission request
try {
List<Video> videos = postVideosAndSubmissionSync(submissionRequest.getVideoUploads());
submissionRequest.setVideos(videos);
} catch (BazaarException e) {
e.printStackTrace();

ConversationsSubmissionException conversationsSubmissionException = (ConversationsSubmissionException) e;

if (conversationsSubmissionException != null) {
throw ConversationsSubmissionException.withRequestErrors(conversationsSubmissionException.getErrors(), conversationsSubmissionException.getFieldErrors());
}
else {
throw ConversationsSubmissionException.withNoRequestErrors(e.getMessage());
}
}
}
if (submissionRequest.getVideoUploads() != null && submissionRequest.getVideoUploads().size() > 0) {
// If the user wants to submit photos, submit each of them, collect the metadata,
// and associate it with the submission request
try {
List<Video> videos = postVideosAndSubmissionSync(submissionRequest.getVideoUploads());
submissionRequest.setVideos(videos);
} catch (BazaarException e) {
e.printStackTrace();

ConversationsSubmissionException conversationsSubmissionException = (ConversationsSubmissionException) e;

if (conversationsSubmissionException != null) {
throw ConversationsSubmissionException.withRequestErrors(conversationsSubmissionException.getErrors(), conversationsSubmissionException.getFieldErrors());
}
else {
throw ConversationsSubmissionException.withNoRequestErrors(e.getMessage());
}
}
}
// Toggle back to no be force preview anymore
submissionRequest.setForcePreview(false);
return submitV7();
Expand Down

0 comments on commit e2bf41a

Please sign in to comment.