mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-18 04:28:02 +00:00
Fixes url redirection error for executebatch
This commit is contained in:
@@ -66,7 +66,7 @@ const executeBatch = (batches) => batches.reduce((promise, batch, index) => {
|
||||
|
||||
const values = await Promise.all(batch.map(fn => fn().catch(e => console.error(e))));
|
||||
|
||||
const results = values.map(R.pathOr({}, ['cpanelresult', 'data', 0]));
|
||||
const results = values.map(data => R.pathOr({ result: data }, ['cpanelresult', 'data', 0], data));
|
||||
const failed = results.filter(x => (x.result || {}).status != 1);
|
||||
|
||||
log(`${values.length - failed.length}/${values.length}`);
|
||||
|
||||
Reference in New Issue
Block a user