Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ingest-image/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default class Task {
createImage(input: $input) {
imageAttempt {
_id
errors {
errs {
_id
error
}
Expand All @@ -182,7 +182,7 @@ export default class Task {
console.log(`createImage res: ${JSON.stringify(imageAttempt)}`);

md._id = imageAttempt._id;
const errors = imageAttempt.errors;
const errors = imageAttempt.errs;

if (errors.length) {
let msg = errors.length === 1 ? errors[0].error : 'MULTIPLE_ERRORS';
Expand All @@ -196,7 +196,7 @@ export default class Task {
// backstop for unforeseen errors returned by the API
// and errors resizing/copying the image to prod buckets.
// Controlled errors during image record creation are returned
// to in the imageAttempt.errors payload and handled above
// to in the imageAttempt.errs payload and handled above

console.error(`Error saving image: ${err}`);

Expand Down
Loading