API: return results on multicall

This commit is contained in:
chfhtw
2025-08-26 14:25:04 +02:00
parent 42a81a4558
commit 1ef884de8c
+3 -1
View File
@@ -486,7 +486,7 @@ export default {
if (Array.isArray(factory)) {
const $api = app.config.globalProperties.$api;
Promise
return Promise
.allSettled(factory.map((config, index) => {
if (!Array.isArray(config))
config = ['#' + index, config];
@@ -526,6 +526,8 @@ export default {
for (var errType in typedErrors) {
errorConfig.handler[errType](typedErrors[errType]);
}
return result;
});
}
let { method, url, params, config } = factory;