Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates required for animl-api TypeScript refactor #82

Closed
wants to merge 1 commit into from
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