File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
packages/app/src/cli/services/bulk-operations Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import {adminRequestDoc} from '@shopify/cli-kit/node/api/admin'
77import { AdminSession } from '@shopify/cli-kit/node/session'
88import { formData , fetch } from '@shopify/cli-kit/node/http'
99import { AbortError } from '@shopify/cli-kit/node/error'
10+ import { outputContent } from '@shopify/cli-kit/node/output'
11+ import { renderSingleTask } from '@shopify/cli-kit/node/ui'
1012
1113interface StageFileOptions {
1214 adminSession : AdminSession
@@ -106,9 +108,18 @@ async function uploadFileToStagedUrl(
106108 contentType : 'text/jsonl' ,
107109 } )
108110
109- const uploadResponse = await fetch ( uploadUrl , {
110- method : 'POST' ,
111- body : form ,
111+ const uploadResponse = await renderSingleTask ( {
112+ title : outputContent `Uploading bulk operation variables` ,
113+ task : async ( ) => {
114+ return fetch (
115+ uploadUrl ,
116+ {
117+ method : 'POST' ,
118+ body : form ,
119+ } ,
120+ 'slow-request' ,
121+ )
122+ } ,
112123 } )
113124
114125 if ( ! uploadResponse . ok ) {
You can’t perform that action at this time.
0 commit comments