From 1ef884de8c966613572f7523c4116db0fb57dd73 Mon Sep 17 00:00:00 2001 From: chfhtw Date: Tue, 26 Aug 2025 14:25:04 +0200 Subject: [PATCH] API: return results on multicall --- public/js/plugins/Api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/plugins/Api.js b/public/js/plugins/Api.js index 091a81717..034c326e9 100644 --- a/public/js/plugins/Api.js +++ b/public/js/plugins/Api.js @@ -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;