From c4dddba911996b1a9e07ab202df34625f6920643 Mon Sep 17 00:00:00 2001 From: dannd Date: Fri, 31 Jan 2020 13:50:48 +0700 Subject: [PATCH] fix: #140 Submit app update screenshot 5 to use a valid uri --- packages/marketplace/src/sagas/__tests__/submit-app.ts | 3 +++ packages/marketplace/src/sagas/submit-app.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/marketplace/src/sagas/__tests__/submit-app.ts b/packages/marketplace/src/sagas/__tests__/submit-app.ts index d2eca772cb..96f74e48ca 100644 --- a/packages/marketplace/src/sagas/__tests__/submit-app.ts +++ b/packages/marketplace/src/sagas/__tests__/submit-app.ts @@ -31,6 +31,7 @@ describe('submit-app post data', () => { generateDumpPromise(), generateDumpPromise(), generateDumpPromise(), + generateDumpPromise(), ] const imageUploaderResults = [ { Url: 'base64 string...' }, @@ -38,6 +39,7 @@ describe('submit-app post data', () => { { Url: 'base64 string...' }, { Url: 'base64 string...' }, { Url: 'base64 string...' }, + { Url: 'base64 string...' }, ] const updatedData = { ...appSubmitStub.data, @@ -46,6 +48,7 @@ describe('submit-app post data', () => { screen2ImageUrl: 'base64 string...', screen3ImageUrl: 'base64 string...', screen4ImageUrl: 'base64 string...', + screen5ImageUrl: 'base64 string...', } const gen = cloneableGenerator(submitAppSaga)(params) diff --git a/packages/marketplace/src/sagas/submit-app.ts b/packages/marketplace/src/sagas/submit-app.ts index 1a6cca4771..a56a6a3ebf 100644 --- a/packages/marketplace/src/sagas/submit-app.ts +++ b/packages/marketplace/src/sagas/submit-app.ts @@ -48,6 +48,7 @@ export const submitApp = function*({ data }: Action) { screen2ImageUrl, screen3ImageUrl, screen4ImageUrl, + screen5ImageUrl, categoryId, } = values @@ -58,6 +59,7 @@ export const submitApp = function*({ data }: Action) { imageUploaderHelper({ name: `${formatedName}-screen2ImageUrl`, imageData: screen2ImageUrl }), imageUploaderHelper({ name: `${formatedName}-screen3ImageUrl`, imageData: screen3ImageUrl }), imageUploaderHelper({ name: `${formatedName}-screen4ImageUrl`, imageData: screen4ImageUrl }), + imageUploaderHelper({ name: `${formatedName}-screen5ImageUrl`, imageData: screen5ImageUrl }), ] const imageUploaderResults = yield all(imageUploaderReqs) @@ -68,6 +70,7 @@ export const submitApp = function*({ data }: Action) { screen2ImageUrl: imageUploaderResults[2] ? imageUploaderResults[2].Url : '', screen3ImageUrl: imageUploaderResults[3] ? imageUploaderResults[3].Url : '', screen4ImageUrl: imageUploaderResults[4] ? imageUploaderResults[4].Url : '', + screen5ImageUrl: imageUploaderResults[5] ? imageUploaderResults[5].Url : '', } const updatedValuesAfterValidatingCategoryId = {