Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 755337a

Browse files
committed
fixing issues with interaction with the submission api
1 parent ce834e4 commit 755337a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app/services/submissions.service.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ import angular from 'angular'
2323
function startSubmission(body, progressCallback) {
2424
return api.all('submissions').customPOST(body)
2525
.then(function(response) {
26-
progressCallback.call(progressCallback, 'PREPARE', 100)
26+
//progressCallback.call(progressCallback, 'PREPARE', 100)
2727

2828
// uploadSubmissionFileToS3(response, response.data.files, files, progressCallback)
29+
30+
console.log(response);
31+
32+
processSubmission(response, progressCallback);
2933
})
3034
.catch(function(err) {
3135
logger.error('Could not get presigned url', err)
@@ -131,6 +135,8 @@ import angular from 'angular'
131135
logger.info('Successfully made file record. Beginning processing')
132136

133137
progressCallback.call(progressCallback, 'FINISH', 100)
138+
139+
return response;
134140
})
135141
.catch(function(err) {
136142
logger.error('Could not start processing', err)

app/submissions/submit-design-files/submit-design-files.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ import _ from 'lodash'
150150
SubmissionsService.startSubmission(vm.submissionsBody, updateProgress)
151151
.then(function(newSubmission) {
152152
logger.debug("New Submission: ", newSubmission)
153-
SubmissionsService.processSubmission(newSubmission, updateProgress)
153+
//SubmissionsService.processSubmission(newSubmission, updateProgress)
154154
})
155155
.then(function(processedSubmission) {
156156
logger.debug("Processed Submission: ", processedSubmission)

0 commit comments

Comments
 (0)