shoplazza-cli 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,7 @@ const { checkAndZipThemes } = require('./package');
|
|
|
10
10
|
const log = require('../../log');
|
|
11
11
|
|
|
12
12
|
const checkPushTask = (taskId) => {
|
|
13
|
-
let maxCheckCount = 60;
|
|
13
|
+
let maxCheckCount = 3 * 60;
|
|
14
14
|
let state = -1;
|
|
15
15
|
return new Promise(async (resolve, reject) => {
|
|
16
16
|
while (maxCheckCount--) {
|
|
@@ -19,7 +19,7 @@ const checkPushTask = (taskId) => {
|
|
|
19
19
|
task: { status, info, message }
|
|
20
20
|
}
|
|
21
21
|
} = await getPushTask(taskId);
|
|
22
|
-
status == 0 && (await sleep(
|
|
22
|
+
status == 0 && (await sleep(3 * 1000));
|
|
23
23
|
if (status == 1 || status == 2) {
|
|
24
24
|
state = status;
|
|
25
25
|
state == 1 && resolve(info);
|